public ProfessorViewModel()
        {
            OnSairCMD = new Command(OnSair);
            OnNovoCMD = new Command(OnNovo);
            OnAdicionarProfessorCMD = new OnAdicionarProfessorCMD(this);
            OnEditarProfessorCMD    = new OnEditarProfessorCMD(this);
            OnDeleteProfessorCMD    = new OnDeleteProfessorCMD(this);

            ProfessorList = ProfessorRepository.GetProfessoresSqlAzureAsync().Result;
        }
Esempio n. 2
0
        public ProfessorViewModel()
        {
            OnAdicionarProfessorCMD = new OnAdicionarProfessorCMD(this);
            OnEditarProfessorCMD    = new OnEditarProfessorCMD(this);
            OnDeleteProfessorCMD    = new OnDeleteProfessorCMD(this);
            OnSairCMD = new Command(OnSair);
            OnNovoCMD = new Command(OnNovo);

            CopiaListaProfessores = new List <Professor>();
        }
Esempio n. 3
0
        public ProfessorViewModel()
        {
            AdicionarProfessorCMD = new OnAdicionarProfessorCMD(this);
            EditarProfessorCMD    = new OnEditarProfessorCMD(this);
            DeleteProfessorCMD    = new OnDeleteProfessorCMD(this);

            NovoCMD     = new Command(OnNovo);
            CancelarCMD = new Command(OnCancelar);

            ListaProfessores = new List <Professor>();
        }
Esempio n. 4
0
        public ProfessorViewModel()
        {
            //ProfessorRepository repository = ProfessorRepository.Instance;

            OnAdicionarProfessorCMD = new OnAdicionarProfessorCMD(this);
            OnEditarProfessorCMD    = new OnEditarProfessorCMD(this);
            OnDeleteProfessorCMD    = new OnDeleteProfessorCMD(this);
            OnSairCMD = new Command(OnSair);
            OnNovoCMD = new Command(OnNovo);

            CopiaListaProfessor = new List <Professor>();
            Carregar();
        }