Added code on mnuNavigationAUpres click to open frmPrescription.

This commit is contained in:
Adam McCane 2024-02-09 12:15:31 -05:00
parent 560165a809
commit 847ed02d24
2 changed files with 18 additions and 5 deletions

View File

@ -87,6 +87,7 @@
this.mnuNavigationAUPres.Name = "mnuNavigationAUPres"; this.mnuNavigationAUPres.Name = "mnuNavigationAUPres";
this.mnuNavigationAUPres.Size = new System.Drawing.Size(286, 22); this.mnuNavigationAUPres.Size = new System.Drawing.Size(286, 22);
this.mnuNavigationAUPres.Text = "Add/Update Prescription"; this.mnuNavigationAUPres.Text = "Add/Update Prescription";
this.mnuNavigationAUPres.Click += new System.EventHandler(this.mnuNavigationAUPres_Click);
// //
// mnuNavigationAURRefill // mnuNavigationAURRefill
// //

View File

@ -41,14 +41,26 @@ namespace Louis__Pharmacy_CNSA212_FP
private void mnuNavigationAUPaPh_Click(object sender, EventArgs e) private void mnuNavigationAUPaPh_Click(object sender, EventArgs e)
{ {
frmPatientPhysician formAdd = new frmPatientPhysician(); frmPatientPhysician formPaPh = new frmPatientPhysician();
formAdd.MdiParent = this; formPaPh.MdiParent = this;
formAdd.StartPosition = FormStartPosition.CenterScreen; formPaPh.StartPosition = FormStartPosition.CenterScreen;
formAdd.Show(); formPaPh.Show();
formAdd.Focus(); formPaPh.Focus();
mnuNavigationAUPaPh.Checked = true; mnuNavigationAUPaPh.Checked = true;
} }
private void mnuNavigationAUPres_Click(object sender, EventArgs e)
{
frmPrescription formPrescription = new frmPrescription();
formPrescription.MdiParent = this;
formPrescription.StartPosition = FormStartPosition.CenterScreen;
formPrescription.Show();
formPrescription.Focus();
mnuNavigationAUPres.Checked = true;
}
} }
} }