public MainWindowViewModel(BaseSingleton baseSingleton)
        {
            Base_ = baseSingleton;

            baseSingleton.SetProperties();

            AppRibbon.SetVisibility("tabOperacoesCadastro", Visibility.Collapsed);

            ListProfCommand       = new RelayCommand(ListProf);
            ListFaixaCommand      = new RelayCommand(ListFaixa);
            ListNivelCommand      = new RelayCommand(ListNivel);
            ListSituacaoCommand   = new RelayCommand(ListSituacao);
            ListCategoriaCommand  = new RelayCommand(ListCategoria);
            ListMateriasCommand   = new RelayCommand(ListMaterias);
            ListTurmasCommand     = new RelayCommand(ListTurmas);
            ListCalendarioCommand = new RelayCommand(ListCalendario);
            ListFaltasCommand     = new RelayCommand(ListFaltas);

            NovoCommand   = new RelayCommand(Add);
            DeleteCommand = new RelayCommand(Delete);
            //ClosedCommand = new RelayCommand(EncerraApp);

            WizFinishCommand = new RelayCommand(Save);
            WizCancelCommand = new RelayCommand(Cancel);
            WizBackCommand   = new RelayCommand(Back);
            WixNextCommand   = new RelayCommand(Next);
        }
        public DisciplinasViewModel()
        {
            Disc = new AppFactory().NewDisciplina();

            AppRibbon.SetFocus("tabOperacoesCadastro");

            FillCollection();
        }
예제 #3
0
        public FaixasViewModel()
        {
            Fxa = new AppFactory().NewFaixa();

            AppRibbon.SetFocus("tabOperacoesCadastro");

            FillCollection();
        }
        public SituacoesViewModel()
        {
            Sit = new AppFactory().NewSituacao();

            AppRibbon.SetFocus("tabOperacoesCadastro");

            FillCollection();
        }
예제 #5
0
        public CategoriasViewModel()
        {
            Cat = new AppFactory().NewCategoria();

            AppRibbon.SetFocus("tabOperacoesCadastro");

            FillCollection();
        }
예제 #6
0
        public TurmasViewModel()
        {
            Turm = new AppFactory().NewTurma();

            AppRibbon.SetFocus("tabOperacoesCadastro");

            FillCollection();
        }
        public NiveisViewModel()
        {
            Niv = new AppFactory().NewNivel();

            AppRibbon.SetFocus("tabOperacoesCadastro");

            FillCollection();
        }
        public BoletimDiarioViewModel(BaseSingleton baseSingleton)
        {
            Base_ = baseSingleton;
            Falta = new AppFactory().NewFalta();

            MouseDoubleClickCommand = new RelayCommand(CurrentCellSelected);
            AppRibbon.SetFocus("tabOperacoesCadastro");

            FillCollection();
        }
        public ProfessoresViewModel(BaseSingleton baseSingleton)
        {
            Base_ = baseSingleton;

            MouseDoubleClickCommand = new RelayCommand(CurrentCellSelected);
            Prof = new AppFactory().NewProfessor();

            AppRibbon.SetFocus("tabOperacoesCadastro");

            FillCollection();
        }