in pratica con il metodo vm.FormulaPizzaCommand.Execute(null); entro nel mio ViewModel
dove gestisco il comando del bottone della mia GUI
in pratica scrivo un immagine nel db e l'assegno alla formulacodice:#region Constructor public SimulatViewModel(SimulatModel model) { this._model = model; this.FormulaCommand = new RelayCommand(this.Formula); } public RelayCommand FormulaCommand { get; set; } private void Formula() { string FormulaNumber = "1001"; if (!_model.ExistsFormula(FormulaNumber)) { _model.InsertImage(); }
l'errore è thread già in uso impossibile accedere