public DeletePatientViewModel() { _dialogService = new DialogBoxService(); Patients = PatientDBConverter.GetPatients(); Messenger.Default.Register <NotificationMessage>( this, message => { UpdateDB(); } ); DeleteCommand = new RelayCommand(DeleteFromDB); }
private void UpdateDB() { Patients = PatientDBConverter.GetPatients(); }