Exemple #1
0
        public DeletePatientViewModel()
        {
            _dialogService = new DialogBoxService();

            Patients = PatientDBConverter.GetPatients();
            Messenger.Default.Register <NotificationMessage>(
                this,
                message =>
            {
                UpdateDB();
            }
                );
            DeleteCommand = new RelayCommand(DeleteFromDB);
        }
Exemple #2
0
 private void UpdateDB()
 {
     Patients = PatientDBConverter.GetPatients();
 }