コード例 #1
0
        private void newPatientButton_Click(object sender, RoutedEventArgs e)
        {
            PatientWindow pWindow = new PatientWindow();

            pWindow.ShowDialog();
            this.VM.RefreshData();
        }
コード例 #2
0
 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();
     }
 }