From 1c3ba8315dd5e6cfd3f336fb6866c4c7cfc310b3 Mon Sep 17 00:00:00 2001 From: Adam McCane Date: Wed, 21 Feb 2024 00:51:28 -0500 Subject: [PATCH] Fixed Patient/Physician search error. --- Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs | 2 +- Louis'-Pharmacy_CNSA212-FP/frmInfo.cs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs b/Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs index aa4dcf0..242e85f 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs @@ -237,7 +237,7 @@ namespace Louis__Pharmacy_CNSA212_FP this.splcPatient.Panel1.Controls.Add(lblPatientFirst); this.splcPatient.Panel1.Controls.Add(this.txtPatientFirst); this.splcPatient.Panel1.Controls.Add(this.btnPatientSearch); - this.splcPatient.Panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.Panel1_Paint); + //this.splcPatient.Panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.Panel1_Paint); // // splcPatient.Panel2 // diff --git a/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs b/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs index d809ff5..a930986 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs @@ -270,7 +270,7 @@ namespace Louis__Pharmacy_CNSA212_FP cmuPatientEdit.Enabled = dgvPatient.Rows.Count > 0; cmuPatientDelete.Enabled = dgvPatient.Rows.Count > 0; - dgvPatient.Visible = dgvPatient.Rows.Count > 0; + //dgvPatient.Visible = dgvPatient.Rows.Count > 0; dgvPatient.Focus(); @@ -447,7 +447,7 @@ namespace Louis__Pharmacy_CNSA212_FP cmuPhysicianDelete.Enabled = dgvPhysician.Rows.Count > 0; - dgvPhysician.Visible = dgvPhysician.Rows.Count > 0; + //dgvPhysician.Visible = dgvPhysician.Rows.Count > 0; dgvPhysician.Focus(); @@ -492,10 +492,10 @@ namespace Louis__Pharmacy_CNSA212_FP { } - private void Panel1_Paint(object sender, PaintEventArgs e) - { + //private void Panel1_Paint(object sender, PaintEventArgs e) + //{ - } + //} private void cmuPatientDelete_Click(object sender, EventArgs e) {