private void clienteToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ConsultarCliente CCliente = new ConsultarCliente();

            CCliente.MdiParent = this;
            CCliente.Show();
        }
Ejemplo n.º 2
0
        private void btnCliente_Click(object sender, EventArgs e)
        {
            ConsultarCliente consultarCliente = new ConsultarCliente();

            consultarCliente.ShowDialog();

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