Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            Clases.Poblar pob = new Clases.Poblar();
            pob.TodosEstudiantes();

            int busca = 0;

            if (int.TryParse(textBox1.Text, out busca))
            {
                Clases.Estudiante est = pob.BuscarEstdudiante(busca);

                if (est != null)
                {
                    label7.Text  = est.Name + est.Lastname;
                    label8.Text  = est.Code.ToString();
                    label9.Text  = est.Career;
                    label10.Text = est.Horario[0];
                    label11.Text = est.Horario[1];
                    label12.Text = est.Horario[2];
                }
                else
                {
                    label6.Text = "Estudiante no encontrado";
                }
            }
            else
            {
                MessageBox.Show("No es un código valido!", "Buscar estudiante",
                                MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
        }
Ejemplo n.º 2
0
        private void Asistencia_Load(object sender, EventArgs e)
        {
            Clases.Poblar pob = new Clases.Poblar();
            pob.IniciarTodo();

            Clases.Estudiante[] array = pob.TodosEstudiantes();

            label6.Text  = array[1].Name;
            label7.Text  = array[1].Code.ToString();
            label8.Text  = array[1].Fallas.ToString();
            label9.Text  = array[1].Horario[0];
            label10.Text = array[1].Horario[1];
            label11.Text = array[1].Horario[2];

            label17.Text = array[2].Name;
            label16.Text = array[2].Code.ToString();
            label15.Text = array[2].Fallas.ToString();
            label14.Text = array[2].Horario[0];
            label13.Text = array[2].Horario[1];
            label12.Text = array[2].Horario[2];

            label23.Text = array[3].Name;
            label22.Text = array[3].Code.ToString();
            label21.Text = array[3].Fallas.ToString();
            label20.Text = array[3].Horario[0];
            label19.Text = array[3].Horario[1];
            label18.Text = array[3].Horario[2];
        }
Ejemplo n.º 3
0
        private void Gimnasio_Load(object sender, EventArgs e)
        {
            pob = new Clases.Poblar();

            pob.IniciarTodo();

            Clases.Estudiante[] array = pob.TodosEstudiantes();

            label3.Text  = array[1].Name;
            label8.Text  = array[1].Code.ToString();
            label10.Text = array[1].Career;
            label9.Text  = array[1].Semester.ToString();
            label11.Text = array[1].Obervaciones;

            label16.Text = array[2].Name;
            label15.Text = array[2].Code.ToString();
            label14.Text = array[2].Career;
            label13.Text = array[2].Semester.ToString();
            label12.Text = array[2].Obervaciones;

            label21.Text = array[3].Name;
            label20.Text = array[3].Code.ToString();
            label19.Text = array[3].Career;
            label18.Text = array[3].Semester.ToString();
            label17.Text = array[3].Obervaciones;
        }