public TakeMedicationAddEditViewModel(TakeMedicationAddEdit takeMedicationAddEditOpen) { takeMedicationAddEdit = takeMedicationAddEditOpen; using (Service1Client wcf = new Service1Client()) { TakeMedicationList = wcf.GetAllTakeMedication().ToList(); } }
private void TakeMedicationExecute() { try { TakeMedicationAddEdit view = new TakeMedicationAddEdit(); view.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }