Beispiel #1
0
        private void departamentosToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ConsDep obj = new ConsDep();

            obj.MdiParent = this;
            obj.Show();
        }
Beispiel #2
0
        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();
            }
        }
Beispiel #3
0
        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}");
            }
        }