private void btnCreateCustomer_Click(object sender, EventArgs e) { frmCustomer fcustomer = new frmCustomer(); //this.Close(); fcustomer.ShowDialog(); }
private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem.Text == "Customer") { frmCustomer fcustomer = new frmCustomer(); fcustomer.ShowDialog(); } else { frmOrder forder = new frmOrder(); forder.ShowDialog(); } }