コード例 #1
0
        //Delete
        private void ExecuteDeletePatientsCommand()
        {
            MessageBoxResult res = MessageBox.Show("Are you sure want to delete?", "Confirmation!",
                                                   MessageBoxButton.YesNo, MessageBoxImage.Question);

            if (res == MessageBoxResult.Yes)
            {
                _dataService.DeletePatient(Selected);
                PatientsViewModel.UpdatePatients();
            }
        }
コード例 #2
0
 private void ExecuteEditPatientsCommand()
 {
     _dataService.EditPatient(EditedPatient, Selected, SelectedFacility);
     PatientsViewModel.UpdatePatients();
 }