Example #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(textBox_clave_pro_update.Text) || String.IsNullOrEmpty(textBoxCantidad_total_update.Text))
            {
                MessageBox.Show("Debe llenar la informacion para actualizar la cantidad total de un producto");
                return;
            }

            MySql.conectar();
            MySql.actualizar_total(Convert.ToInt32(textBox_clave_pro_update.Text), Convert.ToInt32(textBoxCantidad_total_update.Text));
            llenargrid(MySql.obtenerdata());
            MySql.cerrarconexion();
        }