コード例 #1
0
        private void pictureBox2_Click_1(object sender, EventArgs e)
        {
            this.Hide();
            telaInicial voltarInicio = new telaInicial();

            voltarInicio.Closed += (s, args) => this.Close();
            voltarInicio.Show();
        }
コード例 #2
0
ファイル: telaInicial.cs プロジェクト: phbelucci/EducaAtiva
        private void logoMaior_Click(object sender, EventArgs e)
        {
            this.Hide();
            telaInicial voltarInicio = new telaInicial();

            voltarInicio.Closed += (s, args) => this.Close();
            voltarInicio.Show();
        }
コード例 #3
0
ファイル: telaJogos.cs プロジェクト: phbelucci/EducaAtiva
 private void pictureBox8_Click(object sender, EventArgs e)
 {
     if (telaAnterior == "PROFESSOR")
     {
         this.Hide();
         telaLogadoProfessor voltarProfessor = new telaLogadoProfessor(cod_user);
         voltarProfessor.Closed += (s, args) => this.Close();
         voltarProfessor.Show();
     }
     else if (telaAnterior == "ALUNO")
     {
         this.Hide();
         telaLogadoAluno voltarAluno = new telaLogadoAluno(cod_user);
         voltarAluno.Closed += (s, args) => this.Close();
         voltarAluno.Show();
     }
     else
     {
         this.Hide();
         telaInicial voltarInicio = new telaInicial();
         voltarInicio.Closed += (s, args) => this.Close();
         voltarInicio.Show();
     }
 }