Example #1
0
 private void mnuRenameChapter_Click(object sender, RoutedEventArgs e)
 {
     ListBoxAction <Core.MangaChapter>(lstFileChapters, (ch) =>
     {
         Dialogs.dlgString dlgName = new Dialogs.dlgString()
         {
             Title      = "Enter name",
             Caption    = "Enter new chapter title:",
             StringData = ch.Name
         };
         if (dlgName.ShowDialog() ?? false)
         {
             ch.Name = dlgName.StringData;
         }
     });
 }
Example #2
0
 private void mnuAddEmptyChapter_Click(object sender, RoutedEventArgs e)
 {
     Dialogs.dlgString dlgName = new Dialogs.dlgString()
     {
         Title      = "Enter name",
         Caption    = "Enter empty chapter title:",
         StringData = "Chapter Name"
     };
     if (dlgName.ShowDialog() ?? false)
     {
         mangaChapters.Add(MangaChapter.Extend <SelectableMangaChapter>(new Core.MangaChapter()
         {
             IsRTL = rbRTL.IsChecked ?? false,
             Pages = new ObservableCollection <Core.MangaPage>(),
             Name  = dlgName.StringData
         }));
     }
 }