private void AdminWindow_KeyDown(object sender, KeyEventArgs e) { if (e.Shift && e.KeyCode == Keys.T) { AddTraderFrm addTraderFrm = new AddTraderFrm(); addTraderFrm.Show(); } if (e.Shift && e.KeyCode == Keys.C) { AddCustomerFrm addCustomer = new AddCustomerFrm(); addCustomer.Show(); } if (e.Shift && e.KeyCode == Keys.G) { GoodsEntry goodsEntry = new GoodsEntry(); goodsEntry.Show(); } if (e.Shift && e.KeyCode == Keys.S) { SellsEntry sellsDetails = new SellsEntry(); sellsDetails.Show(); } }
private void addNewCustomerToolStripMenuItem_Click(object sender, EventArgs e) { AddCustomerFrm addCustomer = new AddCustomerFrm(); addCustomer.Show(); }