diff --git a/Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs b/Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs index 7870e12..cfa845d 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs @@ -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 // diff --git a/Louis'-Pharmacy_CNSA212-FP/frmMain.cs b/Louis'-Pharmacy_CNSA212-FP/frmMain.cs index f6bf564..6891372 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmMain.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmMain.cs @@ -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; + } } }