Added code on mnuNavigationAUPaPh click to open frmPatientPhysician.

This commit is contained in:
Adam McCane 2024-02-09 11:59:29 -05:00
parent 8e3c58eec4
commit 560165a809
2 changed files with 13 additions and 0 deletions

View File

@ -80,6 +80,7 @@
this.mnuNavigationAUPaPh.Name = "mnuNavigationAUPaPh";
this.mnuNavigationAUPaPh.Size = new System.Drawing.Size(286, 22);
this.mnuNavigationAUPaPh.Text = "Add/Update Patient/Physician";
this.mnuNavigationAUPaPh.Click += new System.EventHandler(this.mnuNavigationAUPaPh_Click);
//
// mnuNavigationAUPres
//

View File

@ -38,5 +38,17 @@ namespace Louis__Pharmacy_CNSA212_FP
mnuNavigationView.Checked = true;
}
private void mnuNavigationAUPaPh_Click(object sender, EventArgs e)
{
frmPatientPhysician formAdd = new frmPatientPhysician();
formAdd.MdiParent = this;
formAdd.StartPosition = FormStartPosition.CenterScreen;
formAdd.Show();
formAdd.Focus();
mnuNavigationAUPaPh.Checked = true;
}
}
}