예제 #1
0
        private void Btn_BuscarTipoTransporte_Click(object sender, EventArgs e)
        {
            ConsultLineas concep = new ConsultLineas();

            concep.ShowDialog();

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

            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();
            }
        }