private void button1_Click(object sender, EventArgs e) { if (navButton == btnStock) { frmAdd_New_Stock_Item frm = new frmAdd_New_Stock_Item(); frm.ShowDialog(); } else if (navButton == btnMenu) { Menu_And_Combo form = new Menu_And_Combo(); form.ShowDialog(); } }
//private void button11_Click(object sender, EventArgs e) //{ //} //Maintain Stock Mouse Right Click //Maintain Stock Mouse Right Click-------------------------------------------------------------------// //Maintain Stock Mouse Right Click //Maintain Stock Mouse Right Click-------------------------------------------------------------------// //Stock Management Click Event Handlers // //-----------------------------------------------------------------------// private void button1_Click(object sender, EventArgs e) { if (navButton == quoteBtn) { SalesAndOrdering sales = new SalesAndOrdering(); sales.ShowDialog(); //navigate(quoteBtn); } if (navButton == btnSuppliers11) { SupplierForm supplier = new SupplierForm(); supplier.ShowDialog(); } if (navButton == clientBtn) { frmAddCustomer customer = new frmAddCustomer(); customer.ShowDialog(); } if (navButton == supplierBtn) { frmAddCombo combo = new frmAddCombo(); combo.ShowDialog(); } if (navButton == jobOBtn) { Menu_And_Combo menu = new Menu_And_Combo(); menu.ShowDialog(); } if (navButton == inventoryBtn) { frmAdd_New_Stock_Item addStock = new frmAdd_New_Stock_Item(); addStock.ShowDialog(); } if (navButton == empBtn) { Add_Employee employee = new Add_Employee(); employee.ShowDialog(); } }