private void pictureBox2_Click_1(object sender, EventArgs e) { this.Hide(); telaInicial voltarInicio = new telaInicial(); voltarInicio.Closed += (s, args) => this.Close(); voltarInicio.Show(); }
private void logoMaior_Click(object sender, EventArgs e) { this.Hide(); telaInicial voltarInicio = new telaInicial(); voltarInicio.Closed += (s, args) => this.Close(); voltarInicio.Show(); }
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(); } }