private void btnCONSULTAS_Click(object sender, EventArgs e) { if (dgvDATA.CurrentRow == null) { MessageBox.Show("Debe seleccionar un usuario de la lista", "ATENCION!!"); return; } frmUSUARIO formUSUARIO = new frmUSUARIO(cUSUARIOS.OBTENER_USUARIO(Convert.ToInt32(dgvDATA.CurrentRow.Cells[0].Value)), "C"); DialogResult dr = formUSUARIO.ShowDialog(); }
private void btnALTAS_Click(object sender, EventArgs e) { frmUSUARIO formUSUARIO = new frmUSUARIO(new MODELO.USUARIO(), "A"); DialogResult dr = formUSUARIO.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 usuario de la lista", "ATENCION!!"); return; } frmUSUARIO formUSUARIO = new frmUSUARIO(cUSUARIOS.OBTENER_USUARIO(Convert.ToInt32(dgvDATA.CurrentRow.Cells[0].Value)), "M"); DialogResult dr = formUSUARIO.ShowDialog(); if (dr == System.Windows.Forms.DialogResult.OK) { ARMA_GRILLA(); } }