Ejemplo n.º 1
0
 private void mnuDeletePg_Click(object sender, RoutedEventArgs e)
 {
     if (lstFileChapters.SelectedValue != null)
     {
         SelectableMangaChapter Chapter   = (SelectableMangaChapter)lstFileChapters.SelectedValue;
         List <MangaPage>       tempPages = Chapter.Pages.Where(p => p.IsChecked).ToList();
         tempPages.ForEach(p => Chapter.Pages.Remove(p));
         Chapter.updateChapterStats();
     }
 }
Ejemplo n.º 2
0
 private void mnuToDouble_Click(object sender, RoutedEventArgs e)
 {
     if (lstFileChapters.SelectedValue != null)
     {
         SelectableMangaChapter Chapter = (SelectableMangaChapter)lstFileChapters.SelectedValue;
         Chapter.Pages
         .Where(p => p.IsChecked)
         .ForEach(p => p.IsDouble = true);
         Chapter.updateChapterStats();
     }
 }
Ejemplo n.º 3
0
 private void mnuToSingle_Click(object sender, RoutedEventArgs e)
 {
     //ListBoxAction<Core.MangaPage>(lstFilePages, page => { page.IsDouble = false; page.Chapter.updatePageNumber(); });
     if (lstFileChapters.SelectedValue != null)
     {
         SelectableMangaChapter Chapter = (SelectableMangaChapter)lstFileChapters.SelectedValue;
         Chapter.Pages
         .Where(p => p.IsChecked)
         .ForEach(p => p.IsDouble = false);
         Chapter.updateChapterStats();
     }
 }