public IChapter(IManga manga, String selected)
        {
            manga_name = manga.getName().Trim();
            foreach (string[] i in manga.get_chapters())
            {
                if (i[0] == "2")
                {
                    nb_tome   = Int32.Parse(i[1]);
                    name_tome = i[2];
                }
                if (i[0] == "1" && i[2] == selected)
                {
                    Debug.WriteLine(nb_tome.ToString() + " - " + name_tome);
                    Debug.WriteLine(i[0] + " - " + i[1] + " - " + i[2]);

                    link        = i[1];
                    description = i[2];
                    if (name_tome != "")
                    {
                        path = "Tome " + nb_tome + " - " + name_tome;
                    }
                    else
                    {
                        path = "Tome " + nb_tome;
                    }
                    return;
                }
            }
        }
示例#2
0
        private void listSites_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            int select = listSites.SelectedIndex;

            selectedSite = select;
            if (select < 0)
            {
                return;
            }

            switch (select)
            {
            case 0:
                all_mangas = new Japscan();
                break;

            case 1:
                all_mangas = new MangaReader();
                break;

            case 2:
                all_mangas = new MangaHere();
                break;

            case 3:
                all_mangas = new ReadManga();
                break;
            }


            all_mangas.load_all_mangas();

            GridSites.Visibility  = Visibility.Hidden;
            GridMangas.Visibility = Visibility.Visible;
            last_page             = 2;

            refreshListManga("");
        }
示例#3
0
 public ChapReadManga(IManga manga, String selected) : base(manga, selected)
 {
 }
示例#4
0
 public ChapMangaHere(IManga manga, String selected) : base(manga, selected)
 {
 }
示例#5
0
 public ChapMangaReader(IManga manga, String selected) : base(manga, selected)
 {
 }
示例#6
0
 public ChapJapscan(IManga manga, String selected) : base(manga, selected)
 {
 }