示例#1
0
        public AlunoViewModel()
        {
            AlunoRepository repository = AlunoRepository.Instance;

            OnAdicionarAlunoCMD = new OnAdicionarAlunoCMD(this);
            OnDeleteAlunoCMD    = new OnDeleteAlunoCMD(this);
            CopiaListaAlunos    = new List <Aluno>();

            Carregar();
        }
        public AlunoViewModel()
        {
            AlunoRepository repository = AlunoRepository.Instance;

            OnAdicionarAlunoCMD = new OnAdicionarAlunoCMD(this);
            OnEditarAlunoCMD    = new OnEditarAlunoCMD(this);
            OnDeleteAlunoCMD    = new OnDeleteAlunoCMD(this);
            OnSairCMD           = new Command(OnSair);
            OnNovoCMD           = new Command(OnNovo);

            CopiaListaAlunos = new List <Aluno>();
            Carregar();
        }