private void buttonLoadPatient_Click(object sender, EventArgs e)
 {
     var patientsForm = new PatientsForm();
     Patient loadedPatient;
     if (patientsForm.TryChoosePatient(out loadedPatient))
     {
         this.PatientId = loadedPatient.PatientId;
         this.PatientName = loadedPatient.Name;
         this.PatientNumber = loadedPatient.Number;
     }
 }
Exemple #2
0
 private void menuItemPatientsList_Click(object sender, EventArgs e)
 {
     var patientsForm = new PatientsForm();
     patientsForm.ShowDialog();
 }
 private void buttonLoadPatient_Click(object sender, EventArgs e)
 {
     var patientsForm = new PatientsForm();
     Patient loadedPatient;
     if (patientsForm.TryChoosePatient(out loadedPatient))
     {
         this.PatientId = loadedPatient.PatientId;
         this.PatientName = loadedPatient.Name;
         this.PatientNumber = loadedPatient.Number;
     }
 }