Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 public void AddDrug(BE.Entities.Drug drug)
 {
     BLObj.AddDrug(drug);
 }