Added code on mnuNavigationAURRefill click to open frmRefill.

This commit is contained in:
Adam McCane 2024-02-09 12:17:53 -05:00
parent 847ed02d24
commit 361e09a165
2 changed files with 13 additions and 0 deletions

View File

@ -94,6 +94,7 @@
this.mnuNavigationAURRefill.Name = "mnuNavigationAURRefill"; this.mnuNavigationAURRefill.Name = "mnuNavigationAURRefill";
this.mnuNavigationAURRefill.Size = new System.Drawing.Size(286, 22); this.mnuNavigationAURRefill.Size = new System.Drawing.Size(286, 22);
this.mnuNavigationAURRefill.Text = "Add/Update/Remove Refill"; this.mnuNavigationAURRefill.Text = "Add/Update/Remove Refill";
this.mnuNavigationAURRefill.Click += new System.EventHandler(this.mnuNavigationAURRefill_Click);
// //
// mnuWindow // mnuWindow
// //

View File

@ -62,5 +62,17 @@ namespace Louis__Pharmacy_CNSA212_FP
mnuNavigationAUPres.Checked = true; mnuNavigationAUPres.Checked = true;
} }
private void mnuNavigationAURRefill_Click(object sender, EventArgs e)
{
frmRefill formRefill = new frmRefill();
formRefill.MdiParent = this;
formRefill.StartPosition = FormStartPosition.CenterScreen;
formRefill.Show();
formRefill.Focus();
mnuNavigationAURRefill.Checked = true;
}
} }
} }