private void clientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConsultarCliente consultarCliente = new ConsultarCliente();

            consultarCliente.MdiParent = this;
            consultarCliente.Show();
        }
Пример #2
0
        private void btnCliente_Click(object sender, EventArgs e)
        {
            ConsultarCliente conCli = new ConsultarCliente();

            conCli.ShowDialog();

            if (conCli.DialogResult == DialogResult.OK)
            {
                txtCodigoCli.Text = conCli.dataGridView1.Rows[conCli.dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();
                txtCliente.Text   = conCli.dataGridView1.Rows[conCli.dataGridView1.CurrentRow.Index].Cells[1].Value.ToString();
                txtCodigoPro.Focus();
            }
        }