コード例 #1
0
 private void buttonCancel_Click(object sender, RoutedEventArgs e)
 {
     Content = new PatientInformation(patient);
 }
コード例 #2
0
 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.");
 }
コード例 #3
0
 private void Patients_DataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (Patients_DataGrid.SelectedItems.Count > 0)
         Content = new PatientInformation(((Patient)Patients_DataGrid.SelectedItem));
 }
コード例 #4
0
 private void AddPatient(object sender, RoutedEventArgs e)
 {
     Content = new PatientInformation();
 }