Exemplo n.º 1
0
        /// <summary>
        /// Builds the ViewModel.
        /// </summary>
        public SrsViewModel()
            : base(NavigationPageEnum.Srs)
        {
            NavigationActor.Instance.SrsVm = this;

            ControlMode = ControlModeEnum.Dashboard;

            SrsEntryFilter filter = new SrsEntryFilter();

            ListVm   = new SrsEntryListViewModel(filter);
            FilterVm = new SrsEntryFilterViewModel(filter);
            FilterVm.FilterChanged += OnFilterChanged;

            StartReviewsCommand         = new RelayCommand(OnStartReviews);
            SwitchToDashboardCommand    = new RelayCommand(OnSwitchToDashboard);
            SwitchToSimpleFilterCommand = new RelayCommand(OnSwitchToSimpleFilter);
            AddKanjiItemCommand         = new RelayCommand(OnAddKanjiItem);
            AddVocabItemCommand         = new RelayCommand(OnAddVocabItem);
            ImportCommand = new RelayCommand(OnImport);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Builds the ViewModel.
        /// </summary>
        public SrsViewModel()
            : base(NavigationPageEnum.Srs)
        {
            NavigationActor.Instance.SrsVm = this;

            ControlMode = ControlModeEnum.Dashboard;

            SrsEntryFilter filter = new SrsEntryFilter();

            ListVm = new SrsEntryListViewModel(filter);
            FilterVm = new SrsEntryFilterViewModel(filter);
            FilterVm.FilterChanged += OnFilterChanged;

            StartReviewsCommand = new RelayCommand(OnStartReviews);
            SwitchToDashboardCommand = new RelayCommand(OnSwitchToDashboard);
            SwitchToSimpleFilterCommand = new RelayCommand(OnSwitchToSimpleFilter);
            AddKanjiItemCommand = new RelayCommand(OnAddKanjiItem);
            AddVocabItemCommand = new RelayCommand(OnAddVocabItem);
            ImportCommand = new RelayCommand(OnImport);
        }