private void MNUEVO_Click(object sender, EventArgs e) { frmterrenotipo frm = new frmterrenotipo(); frm._evento = "NUEVO"; frm.ShowDialog(); Listar(); }
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(); }
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(); }