public AddDrugDialogVM() { NewDrug = new BE.Entities.Drug(); model = new AddDrugDialogM(); CancelClick = new Command <object>(ExecuteCancel, AlwaysCanExecute); ChooseImage = new Command <object>(ExecuteChoose, AlwaysCanExecute); AddNewDrugClick = new AsyncCommand <object>(ExecuteAsyncAdd, CanExecuteAdd); ActiveIngredients = new ObservableCollection <string>(); UpdateIngredientList(); }
public void AddDrug(BE.Entities.Drug drug) { BLObj.AddDrug(drug); }