Esempio n. 1
0
 private void MnPreviewManga_Click(object sender, RoutedEventArgs e)
 {
     Core.MangaPage page = lstFilePages.SelectedValue as Core.MangaPage;
     if (page != null)
     {
         Dialogs.dlgBluredImage dlgImage = new Dialogs.dlgBluredImage(page.ImagePath, "File: " + page.Name);
         dlgImage.ShowDialog();
     }
 }
Esempio n. 2
0
        private void MnuPrvwBack_Click(object sender, RoutedEventArgs e)
        {
            SelectablePrintPage p = (SelectablePrintPage)(((System.Windows.FrameworkElement)sender).DataContext);
            var page = new PageInfo((string)((ComboBoxItem)cbPageSize.SelectedItem).Content, float.Parse(txtPrintPadding.Text));

            var b = (new DuplexTemplates(Properties.Resources.GitInfo.Replace("\"", "").Split(' ')[0])).BuildFace(p.Back,
                                                                                                                  page.singlePageWidth, page.singlePageHeight,
                                                                                                                  page.paddingPx, cbKeepColors.IsChecked ?? false, cbIncludeParent.IsChecked ?? false);

            if (tempImage.Exists)
            {
                tempImage.Delete();
            }

            b.Save(tempImage.FullName);
            b.Dispose();

            Dialogs.dlgBluredImage dlgImage = new Dialogs.dlgBluredImage(tempImage.FullName,
                                                                         "Front face of page: " + p.PageNumber);
            dlgImage.ShowDialog();
        }