예제 #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();
 }
예제 #2
0
 public void AddDrug(BE.Entities.Drug drug)
 {
     BLObj.AddDrug(drug);
 }