Esempio n. 1
0
        private void MNUEVO_Click(object sender, EventArgs e)
        {
            frmterrenotipo frm = new frmterrenotipo();

            frm._evento = "NUEVO";
            frm.ShowDialog();
            Listar();
        }
Esempio n. 2
0
        private void MMODIFICAR_Click(object sender, EventArgs e)
        {
            frmterrenotipo frm = new frmterrenotipo();

            frm.ObtenerRegistro(dataGridView1.CurrentRow.Cells[0].Value.ToString());
            frm._evento = "MODIFICAR";
            //frm.txtci.ReadOnly = true;
            frm.ShowDialog();
            Listar();
        }
Esempio n. 3
0
        private void MHABILITAR_Click(object sender, EventArgs e)
        {
            frmterrenotipo frm = new frmterrenotipo();

            frm.ObtenerRegistro(dataGridView1.CurrentRow.Cells[0].Value.ToString());
            if (dataGridView1.CurrentRow.Cells[3].Value.ToString() == "HABILITADO")
            {
                frm._evento = "HABILITAR";
            }
            else
            {
                frm._evento = "DESHABILITAR";
            }

            //frm.txtci.ReadOnly = true;
            frm.ShowDialog();
            Listar();
        }