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

            consultarCliente.MdiParent = this;
            consultarCliente.Show();
        }
Beispiel #2
0
        //Boton Clientes
        private void BtClientes_Click(object sender, EventArgs e)
        {
            ConsultarCliente consultarCliente = new ConsultarCliente();

            consultarCliente.ShowDialog();

            if (consultarCliente.DialogResult == DialogResult.OK)  //DialogResult s de la clase padre Consultas

            {
                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();
            }
        }
Beispiel #3
0
        //Boton Consultar
        private void button1_Click(object sender, EventArgs e)
        {
            ConsultarCliente consultarCliente = new ConsultarCliente();

            consultarCliente.Show();
        }