コード例 #1
0
 public void RemoveItemFromDb(object selectedPrescription)
 {
     try
     {
         medicalFileModel.RemoveReceiptFromDb(selectedPrescription as Recept);
         DrugsTake.Remove((Recept)selectedPrescription);
         ListDisplay.Remove((Recept)selectedPrescription);
     }
     catch (ArgumentException e) { containingVm.ShowMessage(e.Message); }
     catch (Exception e) { containingVm.ShowMessage(e.Message); }
 }
コード例 #2
0
 public void OpenEditingScreen(object item)
 {
     if (SelectedMedicalRecord.AbleEdit)
     {
         containingVm.CurrentVM = new AddMedicalRecordViewModel(containingVm, patientId, physician, SelectedMedicalRecord);
     }
     else
     {
         containingVm.ShowMessage("A doctor who did not create the medical record could not edit it");
     }
 }