Esempio n. 1
0
        private void suplidoresToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ConsSup obj = new ConsSup();

            obj.MdiParent = this;
            obj.Show();
        }
Esempio n. 2
0
        private void ConsSup_Click(object sender, EventArgs e)
        {
            ConsSup obj = new ConsSup();

            if (obj.ShowDialog() == DialogResult.OK)
            {
                CodSup.Text = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString();
            }
        }
Esempio n. 3
0
        public override void Consultar()
        {
            ConsSup obj = new ConsSup();

            if (obj.ShowDialog() == DialogResult.OK)
            {
                codigo.Text = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString();
                codigo.Focus();
                SendKeys.Send("{TAB}");
            }
        }