private void buttonCancel_Click(object sender, RoutedEventArgs e) { Content = new PatientInformation(patient); }
private void EditPatient(object sender, RoutedEventArgs e) { if (Patients_DataGrid.SelectedItems.Count > 0) Content = new PatientInformation(((Patient)Patients_DataGrid.SelectedItem)); else MessageBox.Show("Please select a patient from the list."); }
private void Patients_DataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (Patients_DataGrid.SelectedItems.Count > 0) Content = new PatientInformation(((Patient)Patients_DataGrid.SelectedItem)); }
private void AddPatient(object sender, RoutedEventArgs e) { Content = new PatientInformation(); }