private void departamentosToolStripMenuItem1_Click(object sender, EventArgs e) { ConsDep obj = new ConsDep(); obj.MdiParent = this; obj.Show(); }
private void ConsDep_Click(object sender, EventArgs e) { ConsDep obj = new ConsDep(); if (obj.ShowDialog() == DialogResult.OK) { CodDep.Text = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString(); } }
public override void Consultar() { ConsDep obj = new ConsDep(); if (obj.ShowDialog() == DialogResult.OK) { codigo.Text = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString(); codigo.Focus(); SendKeys.Send("{TAB}"); } }