예제 #1
0
 public Page2ViewModel(INavigationService navigationService)
 {
     _navigationService = navigationService;
     if (_navigationService.NavigatedParametr is TileInfo)
     {
         _tileInfo = (TileInfo)_navigationService.NavigatedParametr;
         PagesInfo = new MangaInfo {Chapters = new ObservableCollection<Chapter>()};
         MainViewVisible = false;
     }
 }
예제 #2
0
 public async Task<MangaInfo> GetInfoAsync()
 {
     var pageHtml = await GetHtmlPage();
     var match = ParseTableInfo(pageHtml);
     var inf = new MangaInfo()
     { //<font style='color:green;'>перевод завершен</font>
         AnotherNames = match.Groups["anname"].Value,
         Author = ParseAuthors(match.Groups["author"].Value).Replace("<font style=\'color:green;\'>","").Replace("</font>",""),
         DownloadingStatus = match.Groups["dchapt"].Value + match.Groups["dstatus"].Value,
         Status = match.Groups["status"].Value,
         Translater = ParseAuthors(match.Groups["transl"].Value),
         Tags = ParseTags(pageHtml),
         Description = ParseDescription(pageHtml),
         Chapters = ParseChapters(pageHtml),
         ReadUrl = ParseReadUrl(pageHtml)
     };
     return inf;
 }