Example #1
0
        private void clientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConsultarCliente ConsulCli = new ConsultarCliente();

            ConsulCli.MdiParent = this;
            ConsulCli.Show();
        }
        private void BtnClientes_Click(object sender, EventArgs e)
        {
            ConsultarCliente consultar = new ConsultarCliente();

            consultar.ShowDialog();

            if (consultar.DialogResult == DialogResult.OK)
            {
                txtCod.Text     = consultar.dataGridView1.Rows[consultar.dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();
                txtCliente.Text = consultar.dataGridView1.Rows[consultar.dataGridView1.CurrentRow.Index].Cells[1].Value.ToString();

                txtCodigo.Focus();
            }
        }
Example #3
0
        private void BtnConsultar_Click(object sender, EventArgs e)
        {
            ConsultarCliente Consul = new ConsultarCliente();

            Consul.MdiParent = this;
        }