private void newPatientButton_Click(object sender, RoutedEventArgs e) { PatientWindow pWindow = new PatientWindow(); pWindow.ShowDialog(); this.VM.RefreshData(); }
private void Update_Click(object sender, RoutedEventArgs e) { if (patientList.SelectedItem == null) { MessageBox.Show("You did not choose a patient."); } else { PatientWindow pWindow = new PatientWindow((patientList.SelectedItem as iPatient)); pWindow.ShowDialog(); this.VM.RefreshData(); } }