private void ModifyPatient_FormClosing(object sender, FormClosingEventArgs e) { try { this.patient = InformationController.CurrentPatientInfo(this.patientID); txtFName.Text = this.patient.FName; txtLName.Text = this.patient.LName; txtSSN.Text = this.patient.SSN; txtStreet.Text = this.patient.Street; txtCity.Text = this.patient.City; txtZip.Text = this.patient.ZipCode; txtState.Text = this.patient.State; txtPhone.Text = this.patient.PhoneNum; } catch (Exception ex) { MessageBox.Show(ex.ToString()); MessageBox.Show("Invalid patient id. " + "Please try searching for the patient again.", "Patient Not Found"); } }
private void PatientInfo_Load(object sender, EventArgs e) { try { this.patient = InformationController.CurrentPatientInfo(this.patientID); txtFName.Text = this.patient.FName; txtLName.Text = this.patient.LName; txtSSN.Text = this.patient.SSN; txtStreet.Text = this.patient.Street; txtCity.Text = this.patient.City; txtZip.Text = this.patient.ZipCode; txtState.Text = this.patient.State; txtPhone.Text = this.patient.PhoneNum; this.loadComboAppointments(); this.loadComboTests(); this.loadComboVisits(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); MessageBox.Show("Invalid patient id. " + "Please try searching for the patient again.", "Patient Not Found"); } }