示例#1
0
        private void Menu_KeyUp(object sender, KeyEventArgs e)
        {
            //CTRL+E
            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.E))
            {
                Empleados em = new Empleados();
                em.Show();
                //this.Close();
            }

            //CTRL+M
            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.M))
            {
                MateriaPrima mp = new MateriaPrima();
                mp.Show();
                //this.Close();
            }

            //CTRL+N
            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.N))
            {
                ProductoFinal cp = new ProductoFinal();
                cp.Show();
                //this.Close();
            }

            //CTRL+B
            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.B))
            {
                Compra p = new Compra();
                p.Show();
                //this.Close();
            }

            //CTRL+L
            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.L))
            {
                Venta v = new Venta();
                v.Show();
                //this.Close();
            }

            //CTRL+K
            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.K))
            {
                Pedidos p = new Pedidos();
                p.Show();
                //this.Close();
            }
        }
示例#2
0
        private void btProducto_Click(object sender, EventArgs e)
        {
            ProductoFinal pf = new ProductoFinal();

            pf.Show();
        }