Пример #1
0
        public void Setup(DateTime?startDate)
        {
            var task = new Core.Shared.Model.Impl.Task {
                Folder = this.folder, Due = DateTime.Now, Start = startDate
            };

            this.folderItemViewModel = new FolderItemViewModel(this.workbook, this.folder);

            this.syncManager = new TestSynchronizationManager();
            this.scheduler   = new AppJobScheduler(this.workbook, this.syncManager, () => new[] { this.folderItemViewModel });

            this.scheduler.OnUpdateTasksTimerTick();
        }
Пример #2
0
 public MainPageViewModel(IWorkbook workbook, ISynchronizationManager synchronizationManager, IStartupManager startupManager, IMessageBoxService messageBoxService, INotificationService notificationService, INavigationService navigationService, IPlatformService platformService, ITileManager tileManager, ITrackingManager trackingManager, ISpeechService speechService)
     : base(workbook, synchronizationManager, startupManager, messageBoxService, notificationService, navigationService, platformService, tileManager, trackingManager, speechService)
 {
     this.printHelper  = new PrintHelper(this.messageBoxService);
     this.jobScheduler = new AppJobScheduler(this.Workbook, this.synchronizationManager, () => this.MenuItems.OfType <FolderItemViewModel>());
 }