public FlashcardSessionTestingService(
     ICardStorageService cardStorageService,
     ICardImpressionsStorageService impressionStorageService)
 {
     this.cardStorageService       = cardStorageService;
     this.impressionStorageService = impressionStorageService;
 }
Пример #2
0
 public CardDesignPageViewModel(
     ICardStorageService cardStorageService,
     INavigationService navigationService)
 {
     this.navigationService  = navigationService;
     this.cardStorageService = cardStorageService;
 }
Пример #3
0
 public CardsBrowseViewModel(
     ICardStorageService cardStorageService,
     INavigationService navigationService,
     ICardOrderingService cardOrderingService)
 {
     this.cardOrderingService = cardOrderingService;
     this.navigationService   = navigationService;
     this.cardStorageService  = cardStorageService;
 }
Пример #4
0
        public FlashcardTestViewModel(
            ICardStorageService cardStorageService,
            ICardImpressionsStorageService cardImpressionsStorageService,
            IFlashcardSessionTestingService flashcardSessionTestingService,
            INavigationService navigationService)
        {
            this.navigationService              = navigationService;
            this.cardStorageService             = cardStorageService;
            this.cardImpressionsStorageService  = cardImpressionsStorageService;
            this.flashcardSessionTestingService = flashcardSessionTestingService;

            this.impressionElapsedUpdater = new Timer(_ => this.UpdateImpressionElapsed(), null, 0, 16); // corresponds to 60fps
        }
Пример #5
0
        public MainPageViewModel(
            INavigationService navigationService,
            ICardStorageService cardStorageService,
            CardsBrowseViewModel cardsBrowseViewModel,
            IFirstRunService firstRunService)
        {
            this.firstRunService    = firstRunService;
            this.cardStorageService = cardStorageService;
            this.navigationService  = navigationService;

            cardsBrowseViewModel.MaxCardCountToDisplay = 10;
            this.CardsBrowseViewModel = cardsBrowseViewModel;
        }