Esempio n. 1
0
 public Services(string path, IReadBookService bookService, IReadHistoryService historyService, IWriteHistoryService writeHistory)
 {
     _path           = path;
     _lastBookPath   = null;
     _bookService    = bookService;
     _historyService = historyService;
     _writeHistory   = writeHistory;
 }
Esempio n. 2
0
 public DetailsPageVm(INavigator navigator, IAlert alert, IWorksService worksService,
                      IFavoriteService favoriteService, IReadHistoryService readHistoryService) : base(navigator, alert)
 {
     _worksService    = worksService;
     _favoriteService = favoriteService;
     _historyService  = readHistoryService;
     SelectChapter    = new Command(async() => await LoadChapter());
     FavoriteCommand  = new Command <WorkIndexing>(async(work) => await FavoriteWork(work.getAs <Work>()));
 }