private void button1_Click_1(object sender, EventArgs e)
        {
            ConsultarPromociones ConPro = new ConsultarPromociones();

            ConPro.ShowDialog();

            if (ConPro.DialogResult == DialogResult.OK)
            {
                txtNompromo.Text  = ConPro.dataGridView1.Rows[ConPro.dataGridView1.CurrentRow.Index].Cells[1].Value.ToString();
                txtDescPromo.Text = ConPro.dataGridView1.Rows[ConPro.dataGridView1.CurrentRow.Index].Cells[2].Value.ToString();

                //txtCodigoPro.Focus();
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            ConsultarPromociones ConCli = new ConsultarPromociones();

            ConCli.ShowDialog();


            if (ConCli.DialogResult == DialogResult.OK)
            {
                txtIdpromo.Text  = ConCli.dataGridView1.Rows[ConCli.dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();
                txtNomPromo.Text = ConCli.dataGridView1.Rows[ConCli.dataGridView1.CurrentRow.Index].Cells[1].Value.ToString();
                comboBox1.Text   = ConCli.dataGridView1.Rows[ConCli.dataGridView1.CurrentRow.Index].Cells[2].Value.ToString();
                //dateTimePicker1.Text = ConCli.dataGridView1.Rows[ConCli.dataGridView1.CurrentRow.Index].Cells[3].Value.ToString();
                //dateTimePicker2.Text = ConCli.dataGridView1.Rows[ConCli.dataGridView1.CurrentRow.Index].Cells[4].Value.ToString();
            }
        }