Beispiel #1
0
        private void Btn_BuscarTipoTransporte_Click(object sender, EventArgs e)
        {
            ConsultBodega concep = new ConsultBodega();

            concep.ShowDialog();

            if (concep.DialogResult == DialogResult.OK)
            {
                Txt_1.Text = concep.Dgv_consulta2.Rows[concep.Dgv_consulta2.CurrentRow.Index].
                             Cells[0].Value.ToString();
            }
        }
Beispiel #2
0
        private void Btn_consultar_Click(object sender, EventArgs e)
        {
            ConsultBodega concep = new ConsultBodega();

            concep.ShowDialog();

            if (concep.DialogResult == DialogResult.OK)
            {
                Txt_1.Text = concep.Dgv_consulta2.Rows[concep.Dgv_consulta2.CurrentRow.Index].
                             Cells[0].Value.ToString();
                Txt_2.Text = concep.Dgv_consulta2.Rows[concep.Dgv_consulta2.CurrentRow.Index].
                             Cells[1].Value.ToString();
                Cbo_estado.Text = concep.Dgv_consulta2.Rows[concep.Dgv_consulta2.CurrentRow.Index].
                                  Cells[2].Value.ToString();
            }
        }
Beispiel #3
0
        private void facultadToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Form frmC = Application.OpenForms.Cast <Form>().FirstOrDefault(x => x is ConsultBodega);

            if (Consult_3 == false || frmC == null)
            {
                if (frmC == null)
                {
                    consult_3 = new ConsultBodega();
                }

                consult_3.MdiParent = this;
                consult_3.Show();
                Application.DoEvents();
                Consult_3 = true;
            }
            else
            {
                consult_3.WindowState = System.Windows.Forms.FormWindowState.Normal;
            }
        }