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; } }
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; } }