Ejemplo n.º 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();
        }