Ejemplo n.º 1
0
        private void ProductosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConsultarProductos ConsulPro = new ConsultarProductos();

            ConsulPro.MdiParent = this;
            ConsulPro.Show();
        }
Ejemplo n.º 2
0
        private void BtProductos_Click(object sender, EventArgs e)
        {
            ConsultarProductos ConsulPro = new ConsultarProductos();

            ConsulPro.ShowDialog();

            if (ConsulPro.DialogResult == DialogResult.OK)
            {
                TxtCodigoProducto.Text = ConsulPro.dataGridView1.Rows[ConsulPro.dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();
                TxtDescripcion.Text    = ConsulPro.dataGridView1.Rows[ConsulPro.dataGridView1.CurrentRow.Index].Cells[1].Value.ToString();
                TxtPrecio.Text         = ConsulPro.dataGridView1.Rows[ConsulPro.dataGridView1.CurrentRow.Index].Cells[2].Value.ToString();

                TxtCantidad.Focus();
            }
        }
Ejemplo n.º 3
0
        private void Button1_Click(object sender, EventArgs e)
        {
            ConsultarProductos ConsulPro = new ConsultarProductos();

            ConsulPro.Show();
        }