コード例 #1
0
        public ProfessorViewModel()
        {
            OnAdicionarProfessorCMD = new OnAdicionarProfessorCMD(this);
            OnDeleteProfessorCMD    = new OnDeleteProfessorCMD(this);
            CopiaListaProfessor     = new List <Professor>();

            Carregar();
        }
コード例 #2
0
        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;
        }
コード例 #3
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>();
        }
コード例 #4
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>();
        }
コード例 #5
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();
        }