Exemplo n.º 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();
            }
        }
Exemplo n.º 2
0
 private void ExecuteEditPatientsCommand()
 {
     _dataService.EditPatient(EditedPatient, Selected, SelectedFacility);
     PatientsViewModel.UpdatePatients();
 }