コード例 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (selecao == 1)
     {
         this.Hide();
         LoginProfessor loginProfessor = new LoginProfessor();
         loginProfessor.Show();
     }
     else if (selecao == 2)
     {
         this.Hide();
         LoginAluno loginAluno = new LoginAluno();
         loginAluno.Show();
     }
     else if (selecao == 3)
     {
         this.Hide();
         LoginResponsavel loginResponsavel = new LoginResponsavel();
         loginResponsavel.Show();
     }
     else if (selecao == 4)
     {
         this.Hide();
         LoginAdm loginAdm = new LoginAdm();
         loginAdm.Show();
     }
 }
コード例 #2
0
        private void btnVoltar_Click(object sender, EventArgs e)
        {
            this.Hide();
            LoginResponsavel loginResponsavel = new LoginResponsavel();

            loginResponsavel.Show();
        }