private void btnOrder_Click(object sender, EventArgs e) { if (globalVal.User != "") { changeMenuColor(); btnOrder.BackColor = Color.White; btnOrder.ForeColor = Color.DarkGoldenrod; globalVal.FrmSaleOrderStatus = "order"; hideForm(); Sale_Order sale_Order = new Sale_Order(); showForm(sale_Order); } else { } }
private void btnMenuSale_Click(object sender, EventArgs e) { if (globalVal.User != "") { changeMenuColor(); btnMenuSale.BackColor = Color.White; btnMenuSale.ForeColor = Color.DarkGoldenrod; hideForm(); globalVal.FrmSaleOrderStatus = "sale"; Sale_Order sale_order = new Sale_Order(); sale_order.MdiParent = this; sale_order.Location = new Point(0, 0); sale_order.Show(); } else { } }