Beispiel #1
0
        private void productosToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ConsultarProductos conPro = new ConsultarProductos();

            conPro.MdiParent = this;
            conPro.Show();
        }
Beispiel #2
0
        private void btnProductos_Click(object sender, EventArgs e)
        {
            ConsultarProductos conPro = new ConsultarProductos();

            conPro.ShowDialog();

            if (conPro.DialogResult == DialogResult.OK)
            {
                txtCodpro.Text  = conPro.dataGridView1.Rows[conPro.dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();
                txtDescPro.Text = conPro.dataGridView1.Rows[conPro.dataGridView1.CurrentRow.Index].Cells[1].Value.ToString();
                txtPrePro.Text  = conPro.dataGridView1.Rows[conPro.dataGridView1.CurrentRow.Index].Cells[2].Value.ToString();
                txtCantPro.Focus();
            }
        }
Beispiel #3
0
        private void btnProductos_Click(object sender, EventArgs e)
        {
            ConsultarProductos ConPro = new ConsultarProductos();

            ConPro.ShowDialog();
            if (ConPro.DialogResult == DialogResult.OK)
            {
                ;
            }
            {
                txtCodigoPro.Text   = ConPro.dataGridView1.Rows[ConPro.dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();
                txtDescripcion.Text = ConPro.dataGridView1.Rows[ConPro.dataGridView1.CurrentRow.Index].Cells[1].Value.ToString();
                txtPrecio.Text      = ConPro.dataGridView1.Rows[ConPro.dataGridView1.CurrentRow.Index].Cells[2].Value.ToString();
                txtCantidad.Focus();
            }
        }