示例#1
0
        private void b_login_Click_1(object sender, EventArgs e)
        {
            String user = this.t_nome.Text;
            Aluno  aluno;

            if (AlunoDAO.alunoExiste(user))
            {
                aluno = AlunoDAO.getAluno(user);
            }
            else
            {
                aluno    = new Aluno(user);
                aluno.id = AlunoDAO.putAluno(aluno);
            }
            this.Hide();
            ProjetoLI4.Logic.MenuPrincipal mMenu = new ProjetoLI4.Logic.MenuPrincipal(this, aluno);
            mMenu.Show();
        }
示例#2
0
 private void b_voltar_Click(object sender, EventArgs e)
 {
     menuA.Show();
     this.Dispose();
 }