private IActionResult StartReadingManga(MangaInformation pManga, ChapterInformation pChapter, MangaReaderManager pItemToActivate) { ArgumentsValidation.NotNull(pManga, "pManga"); ArgumentsValidation.NotNull(pChapter, "pChapter"); ArgumentsValidation.NotNull(pItemToActivate, "pItemToActivate"); return pItemToActivate.Execute(this, new StartReadAction(this, pManga, pChapter)); }
private MangaReaderManager CreateNewReader(MangaInformation pManga) { var readerController = GetController<IReaderController>(); if (readerController == null) { throw new InvalidOperationException(); } var mangaReaderManager = new MangaReaderManager(this, pManga); readerController.CreateReader(mangaReaderManager); return mangaReaderManager; }