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;
     }
 }
示例#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;
     }
 }