private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e) { if (!FormOpen(new ChangePassword())) { ChangePassword formChangePassword = new ChangePassword(); formChangePassword.MdiParent = this; FormMain = this; formChangePassword.Show(); } }
private void userPermissionToolStripMenuItem_Click(object sender, EventArgs e) { if (!FormOpen(new RoleMaintanance())) { RoleMaintanance formRoleMaintanance = new RoleMaintanance(); formRoleMaintanance.MdiParent = this; FormMain = this; formRoleMaintanance.Show(); } }
private void reportsToolStripMenuItem_Click(object sender, EventArgs e) { if (!FormOpen(new ReportMain())) { ReportMain formReportMain = new ReportMain(); formReportMain.MdiParent = this; FormMain = this; formReportMain.Show(); } }
private void statusStrip_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem.Name.Equals("toolStripStatusLabelInventory")) { var list = new ItemDAL().CheckInventory(); if (!FormOpen(new ItemInventory(null))) { ItemInventory formItemInventory = new ItemInventory(list); formItemInventory.MdiParent = this; FormMain = this; formItemInventory.Show(); } } }
private void processDilyToolStripMenuItem_Click(object sender, EventArgs e) { if (!FormOpen(new ProcessDailySales())) { ProcessDailySales formProcessDailySales = new ProcessDailySales(); formProcessDailySales.MdiParent = this; FormMain = this; formProcessDailySales.Show(); } }