Exemplo n.º 1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            frmProyectoABM formulario = new frmProyectoABM();

            formulario.Op = 1;
            formulario.ShowDialog();
            btnConsultar_Click(sender, e);
        }
Exemplo n.º 2
0
        private void btnEliminar_Click(object sender, EventArgs e)
        {
            frmProyectoABM formulario = new frmProyectoABM((int)grdProyecto.CurrentRow.Cells[0].Value);

            formulario.Op = 3;
            formulario.ShowDialog();
            btnConsultar_Click(sender, e);
        }
        private void btnEditar_Click(object sender, EventArgs e)
        {
            frmProyectoABM formulario = new frmProyectoABM((int)grdProyecto.CurrentRow.Cells[0].Value);

            formulario.Op = 2;
            formulario.ShowDialog();
            btnConsultar_Click(sender, e);//Recargar nuevamente la grilla
        }