Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (txtcom.Text == "Alumno")
            {
                //se abre la ventana del mennu de alumnos
                this.Hide();

                VentanaAlumno ventalum = new VentanaAlumno();
                ventalum.Show();
            }
            if (txtcom.Text == "Profesor")
            {
                //se abre la ventana del mennu de profesores
                this.Hide();

                VentanaProfesor ventaprof = new VentanaProfesor();
                ventaprof.Show();
            }
            if (txtcom.Text == "Bibliotecario")
            {
                //se abre la ventana del mennu de bibliotecarios
                this.Hide();

                VentanaBibliotecario ventabib = new VentanaBibliotecario();
                ventabib.Show();
            }
        }
        private void button3_Click(object sender, EventArgs e)
        {
            this.Hide();

            VentanaAlumno ventan = new VentanaAlumno();

            ventan.Show();
        }