private void usuariosToolStripMenuItem1_Click(object sender, EventArgs e) { cUsuarios obj = new cUsuarios(); obj.MdiParent = this; obj.Show(); }
public override void Consultar() { cUsuarios obj = new cUsuarios(); if (obj.ShowDialog() == DialogResult.OK) { int pos = obj.dataUsuario.CurrentCell.RowIndex; bCodigo.Text = obj.dataUsuario.Rows[pos].Cells[0].Value.ToString().Trim(); bCodigo_Validating(null, null); } obj.Dispose(); }