private void btnBuscarP_Click(object sender, EventArgs e)
 {
     try
     {
         Consultas.frmcProducto obj = new Consultas.frmcProducto();
         obj.ShowDialog();
         txtProducto.Text = Program.Producto;
     }
     catch (Exception ex)
     {
         MessageBoxEx.Show(ex.Message);
     }
 }
Esempio n. 2
0
 private void btnProducto_Click(object sender, EventArgs e)
 {
     Consultas.frmcProducto obj = new Consultas.frmcProducto();
     obj.ShowDialog();
     if (Program.seleccion == 1)
     {
         txtCodigoP.Text  = Program.Idproduct;
         txtProducto.Text = Program.Producto;
         LlenarComboUnidad();
         txtPrecio.Text = Program.Costo.ToString();
         txtCantidad.Focus();
     }
     Program.seleccion = 0;
 }
Esempio n. 3
0
 private void btnProducto_Click(object sender, EventArgs e)
 {
     try
     {
         Consultas.frmcProducto obj = new Consultas.frmcProducto();
         obj.ShowDialog();
         if (Program.seleccion == 1)
         {
             txtCodigoP.Text  = Program.Idproduct;
             txtProducto.Text = Program.Producto;
             LlenarComboUnidad();
             ObtenerPrecioProducto();
             ObtenerExistencia();
             txtCantidad.Focus();
         }
         Program.seleccion = 0;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }