Exemple #1
0
 public ImportModeViewModel()
 {
     NextStepCommand     = new RelayCommand(NextStep);
     PreviousStepCommand = new RelayCommand(PreviousStep);
     DuplicateOptions    = new ImportDuplicateOptionsViewModel();
     Timing = new SrsTimingViewModel();
 }
        public SrsEntryListViewModel(SrsEntryFilter filter)
            : base(filter)
        {
            IsFilterEmpty = filter.IsEmpty();
            SelectedItems = new List <FilteringSrsEntry>();
            _srsEntryDao  = new SrsEntryDao();

            LevelPickerVm = new SrsLevelPickerViewModel();
            LevelPickerVm.Initialize(0);

            TimingVm    = new SrsTimingViewModel();
            TimingDelay = 24;

            RefreshSelectionCommand    = new RelayCommand(OnRefreshSelection);
            SelectSrsItemCommand       = new RelayCommand <FilteringSrsEntry>(OnSelectSrsItem);
            EditSingleItemCommand      = new RelayCommand <FilteringSrsEntry>(OnEditSingleItem);
            UnselectCommand            = new RelayCommand(OnUnselect);
            SelectAllCommand           = new RelayCommand(OnSelectAll);
            EditSingleSelectionCommand = new RelayCommand(OnEditSingleSelection);
            BulkEditMeaningNoteCommand = new RelayCommand(OnBulkEditMeaningNote);
            BulkEditReadingNoteCommand = new RelayCommand(OnBulkEditReadingNote);
            BulkEditTagsCommand        = new RelayCommand(OnBulkEditTags);
            BulkEditTextApplyCommand   = new RelayCommand(OnBulkEditTextApply);
            BulkEditLevelCommand       = new RelayCommand(OnBulkEditLevel);
            BulkEditLevelApplyCommand  = new RelayCommand(OnBulkEditLevelApply);
            CancelBulkEditCommand      = new RelayCommand(OnCancelBulkEdit);
            BulkSuspendCommand         = new RelayCommand(OnBulkSuspend);
            BulkResumeCommand          = new RelayCommand(OnBulkResume);
            BulkDeleteCommand          = new RelayCommand(OnBulkDelete);
            ExportCommand              = new RelayCommand(OnExport);
            BulkRescheduleCommand      = new RelayCommand(OnBulkReschedule);
            BulkRescheduleApplyCommand = new RelayCommand(OnBulkRescheduleApply);
            BulkDelayCommand           = new RelayCommand(OnBulkDelay);
            BulkDelayApplyCommand      = new RelayCommand(OnBulkDelayApply);
        }
 public ImportModeViewModel()
 {
     NextStepCommand = new RelayCommand(NextStep);
     PreviousStepCommand = new RelayCommand(PreviousStep);
     DuplicateOptions = new ImportDuplicateOptionsViewModel();
     Timing = new SrsTimingViewModel();
 }