Beispiel #1
0
        private void clientesToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ConsultarClientes conCli = new ConsultarClientes();

            conCli.MdiParent = this;
            conCli.Show();
        }
Beispiel #2
0
        private void btnClientes_Click(object sender, EventArgs e)
        {
            ConsultarClientes conCli = new ConsultarClientes();

            conCli.ShowDialog();

            if (conCli.DialogResult == DialogResult.OK)
            {
                txtCodigo.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();

                txtCodpro.Focus();
            }
        }