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