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

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

                    carga(sql);
                }
            }
        }