Пример #1
0
        private void GridSeccion_DoubleClick(object sender, EventArgs e)
        {
            FrmMatricula f1 = Application.OpenForms.OfType <FrmMatricula>().SingleOrDefault();

            if (f1 != null)
            {
                //Donde Cells[0] = Columna 1, posición 0
                f1.lblSec.Text     = GridSeccion.CurrentRow.Cells[0].Value.ToString();
                f1.txtSeccion.Text = GridSeccion.CurrentRow.Cells[1].Value.ToString();
                this.Close();
            }
        }
Пример #2
0
        private void GridNoMatric_DoubleClick(object sender, EventArgs e)
        {
            //FrmMatricula obj = new FrmMatricula();
            FrmMatricula f1 = Application.OpenForms.OfType <FrmMatricula>().SingleOrDefault();

            if (f1 != null)
            {
                //Donde Cells[0] = Columna 1, posición 0
                //GridNoMatric.CurrentRow.Cells[0].Value.ToString();
                f1.lblId.Text      = GridNoMatric.CurrentRow.Cells[0].Value.ToString();
                f1.txtCod.Text     = GridNoMatric.CurrentRow.Cells[1].Value.ToString();
                f1.txtNom.Text     = GridNoMatric.CurrentRow.Cells[2].Value.ToString();
                f1.txtDni.Text     = GridNoMatric.CurrentRow.Cells[5].Value.ToString();
                f1.txtCarrera.Text = GridNoMatric.CurrentRow.Cells[4].Value.ToString();
                this.Close();
            }
        }
Пример #3
0
 private void RegistroDeMatriculasToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Alumno.FrmMatricula mat = new Alumno.FrmMatricula();
     mat.Show();
 }