Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="manga"></param>
 /// <param name="mcid"></param>
 /// <param name="title">这个是BiliMangaMaster的标题</param>
 public MangaFlyoutControl(BiliManga manga, int mcid, string title, MangaFlyout parent, BiliMangaMasterResultPage page)
 {
     this.InitializeComponent();
     _manga  = manga;
     _mcid   = mcid;
     _title  = title;
     _parent = parent;
     _page   = page;
 }
Beispiel #2
0
        public MangaFlyout(BiliManga manga, int mcid, string title, BiliMangaMasterResultPage page)
        {
            var control = new MangaFlyoutControl(manga, mcid, title, this, page)
            {
                CanDownload = !manga.IsLocked,
                Title       = "提示"
            };

            if (control.CanDownload)
            {
                control.Info = $"该漫画可下载";
            }
            else
            {
                control.Info = "该漫画不可下载,请先购买";
            }

            Content = control;
        }