Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
        private void addNewTraderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddTraderFrm addTraderFrm = new AddTraderFrm();

            addTraderFrm.Show();
        }