public View_ThemSuaThuoc_ViewModel()
 {
     PickedThuoc = new THUOC();
     Thuoc       = new CT_DONTHUOC();
     DS_Thuoc    = new ObservableCollection <THUOC>();
     DS_CachDung = new ObservableCollection <CACHDUNG>();
     ViewSource  = (CollectionView)CollectionViewSource.GetDefaultView(DS_Thuoc);
     LoadLists();
 }
Beispiel #2
0
 private void RemovePill(CT_DONTHUOC thuoc)
 {
     //await Task.Run(() => Helper.RemovePill((CT_PHIEUKHAMBENH)thuoc));
     SelectedItem.DONTHUOC.Remove(thuoc);
     SelectedItem.ViewSource.Refresh();
 }