Exemplo n.º 1
0
        private void bInfCur_Click(object sender, EventArgs e)
        {
            try
            {
                if (seleccionado != null)
                {
                    if (profesor != null)
                    {
                        fInfoCursoProfesor infocurso = new fInfoCursoProfesor(profesor, seleccionado);
                        this.Hide();
                        infocurso.ShowDialog();
                        this.Close();
                    }
                }
                else
                {
                    throw new Exception("No hay ningun curso seleccionado");
                }

                //para que no se vuelva a seleccionar el mismo
                seleccionado = null;
            } catch (Exception ex)
            {
                MessageBox.Show("ERROR: " + ex.Message);
            }
        }
        private void cerrar()
        {
            fInfoCursoProfesor f = new fInfoCursoProfesor(usuario, curso);

            this.Hide();
            f.ShowDialog();
            this.Close();
        }
Exemplo n.º 3
0
        private void pictureBox3_Click(object sender, EventArgs e)
        {
            fInfoCursoProfesor infoCursoProfesor = new fInfoCursoProfesor(user, curso);

            this.Hide();
            infoCursoProfesor.ShowDialog();
            this.Close();
        }
Exemplo n.º 4
0
 private void pictureBox3_Click(object sender, EventArgs e)
 {
     if (evento is Curso)
     {
         fInfoCursoProfesor curso = new fInfoCursoProfesor(user, (Curso)evento);
         this.Hide();
         curso.ShowDialog();
         this.Close();
     }
     else
     {
         fInfoActividad curso = new fInfoActividad(user, (Actividad)evento);
         this.Hide();
         curso.ShowDialog();
         this.Close();
     }
 }