Exemplo n.º 1
0
        private void MMODIFICAR_Click(object sender, EventArgs e)
        {
            frmcliente frm = new frmcliente();

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

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

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