Beispiel #1
0
 private void Inventario_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (tabcontrolproductonuevo.SelectedTab == tabeprincipal)
     {
         if ((int)e.KeyChar == (int)Keys.F1)
         {
             tabcontrolproductonuevo.SelectedTab = TabNuevo_prod;
         }
         if ((int)e.KeyChar == (int)Keys.F2)
         {
             altabaja();
         }
         if ((int)e.KeyChar == (int)Keys.F3)
         {
             ModificarProducto();
             tabcontrolproductonuevo.SelectedTab = tabcontrolmodificarprod;
         }
         if ((int)e.KeyChar == (int)Keys.F4)
         {
             mensajes.AgregarStock addStock = new mensajes.AgregarStock();
             addStock.ShowDialog();
         }
     }
     else if (tabcontrolproductonuevo.SelectedTab == TabNuevo_prod)
     {
         if ((int)e.KeyChar == (int)Keys.F1)
         {
             Registrar();
         }
         if ((int)e.KeyChar == (int)Keys.F2)
         {
             limpiar();
         }
         if ((int)e.KeyChar == (int)Keys.F3)
         {
         }
     }
     else if (tabcontrolproductonuevo.SelectedTab == tabcontrolmodificarprod)
     {
         if ((int)e.KeyChar == (int)Keys.F1)
         {
             modificar();
         }
         if ((int)e.KeyChar == (int)Keys.F2)
         {
         }
         if ((int)e.KeyChar == (int)Keys.F3)
         {
         }
     }
 }
Beispiel #2
0
 private void button12_Click(object sender, EventArgs e)
 {
     mensajes.AgregarStock addStock = new mensajes.AgregarStock();
     addStock.ShowDialog();
 }