Fixed Patient/Physician search error.

This commit is contained in:
Adam McCane 2024-02-21 00:51:28 -05:00
parent d7fc3aa037
commit 1c3ba8315d
2 changed files with 6 additions and 6 deletions

View File

@ -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
//

View File

@ -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)
{