예제 #1
0
        private void bt_agregar_Click(object sender, EventArgs e)
        {
            Det_Inventarios frm = new Det_Inventarios();

            frm.ShowDialog();
            carga(sql);
        }
예제 #2
0
 private void bteditar_Click(object sender, EventArgs e)
 {
     if (grid_inv.CurrentRow.Cells[0].Value.ToString() != "")
     {
         DialogResult result = MessageBox.Show("¡Deseas Editar el Inventario?", "Precaucion", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
         if (result == DialogResult.Yes)
         {
             Det_Inventarios frm = new Det_Inventarios();
             frm.Tag = grid_inv.CurrentRow.Cells[0].Value.ToString();
             frm.ShowDialog();
             carga(sql);
         }
     }
 }