private void btnCONSULTAS_Click(object sender, EventArgs e) { if (dgvDATA.CurrentRow == null) { MessageBox.Show("Debe seleccionar un grupo de usuarios", "ATENCION!!"); return; } frmGRUPO_USUARIO formGP = new frmGRUPO_USUARIO(cGRUPOS.OBTENER_GRUPO(Convert.ToInt32(dgvDATA.CurrentRow.Cells[0].Value)), "C"); DialogResult dr = formGP.ShowDialog(); }
private void btnALTAS_Click(object sender, EventArgs e) { frmGRUPO_USUARIO formGP = new frmGRUPO_USUARIO(new MODELO.GRUPO(), "A"); DialogResult dr = formGP.ShowDialog(); if (dr == System.Windows.Forms.DialogResult.OK) { ARMA_GRILLA(); } }
private void btnMODIFICACIONES_Click(object sender, EventArgs e) { if (dgvDATA.CurrentRow == null) { MessageBox.Show("Debe seleccionar un grupo de usuarios", "ATENCION!!"); return; } frmGRUPO_USUARIO formGP = new frmGRUPO_USUARIO(cGRUPOS.OBTENER_GRUPO(Convert.ToInt32(dgvDATA.CurrentRow.Cells[0].Value)), "M"); DialogResult dr = formGP.ShowDialog(); if (dr == System.Windows.Forms.DialogResult.OK) { ARMA_GRILLA(); } }