예제 #1
0
        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));
        }
예제 #2
0
        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;
        }