コード例 #1
0
        private void Btn_consultar_Click(object sender, EventArgs e)
        {
            Consulta_BodegaInterna concep = new Consulta_BodegaInterna();

            concep.ShowDialog();

            if (concep.DialogResult == DialogResult.OK)
            {
                Txt_Activo.Text = concep.Dgv_consulta.Rows[concep.Dgv_consulta.CurrentRow.Index].
                                  Cells[0].Value.ToString();
                Txt_CodProd.Text = concep.Dgv_consulta.Rows[concep.Dgv_consulta.CurrentRow.Index].
                                   Cells[1].Value.ToString();
                Txt_ExistenciaActual.Text = concep.Dgv_consulta.Rows[concep.Dgv_consulta.CurrentRow.Index].
                                            Cells[2].Value.ToString();
                Txt_StockMin.Text = concep.Dgv_consulta.Rows[concep.Dgv_consulta.CurrentRow.Index].
                                    Cells[3].Value.ToString();
                Txt_StockMax.Text = concep.Dgv_consulta.Rows[concep.Dgv_consulta.CurrentRow.Index].
                                    Cells[4].Value.ToString();
                comboBox1.Text = concep.Dgv_consulta.Rows[concep.Dgv_consulta.CurrentRow.Index].
                                 Cells[5].Value.ToString();
            }
        }
コード例 #2
0
        private void Button2_Click(object sender, EventArgs e)
        {
            Consulta_BodegaInterna concep = new Consulta_BodegaInterna();

            concep.ShowDialog();
        }