예제 #1
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            if (!ScriptSQL.Existe(tbBuscar.Text))
            {
                ID_Alumno = ScriptSQL.getIDAlumno(tbBuscar.Text);
                if (rbtnBoletas.Checked == true)
                {
                    BoletaPrimerAño frm = new BoletaPrimerAño(ID_Alumno);
                    frm.Show();
                }

                if (rbtnEstudioE.Checked == true)
                {
                    VistaEstudio frm = new VistaEstudio(ID_Alumno, tbBuscar.Text);
                    frm.Show();
                }

                if (rbtnEditarInfo.Checked == true)
                {
                    EditarInfoAlumno frm = new EditarInfoAlumno(ID_Alumno);
                    frm.Show();
                }
            }
            else
            {
                MessageBox.Show("El Alumno " + tbBuscar.Text + " no esta registrado", "Buscar Alumno", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
예제 #2
0
        private void btnVolver_Click(object sender, EventArgs e)
        {
            string          ID_Alumno = ScriptSQL.getIDAlumno(tbNombreAlumno.Text);
            BoletaPrimerAño frm       = new BoletaPrimerAño(ID_Alumno);

            frm.Show();
            this.Close();
        }