private async void loadChapter(int number, bool d = false)
        {
            chapter = new Chapter(manga, number);

            pageBox.Items.Clear();

            int count = await chapter.GetPagesAsync();

            for (int i = 1; i <= count; i++)
                pageBox.Items.Add(i);

            if (d)
                pageBox.SelectedIndex = 0;
        }
Пример #2
0
        private async void loadChapter(int number, bool d = false)
        {
            chapter = new Chapter(manga, number);

            pageBox.Items.Clear();

            int count = await chapter.GetPagesAsync();

            for (int i = 1; i <= count; i++)
            {
                pageBox.Items.Add(i);
            }

            if (d)
            {
                pageBox.SelectedIndex = 0;
            }
        }