CPDFDeleteDialog.xaml.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. namespace compdfkit_tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI
  15. {
  16. /// <summary>
  17. /// DeleteDialog.xaml 的交互逻辑
  18. /// </summary>
  19. public partial class CPDFDeleteDialog : Window
  20. {
  21. private string titleContent = "";
  22. private string contentContent = "";
  23. public bool IsDelete = false;
  24. public CPDFDeleteDialog()
  25. {
  26. InitializeComponent();
  27. }
  28. public CPDFDeleteDialog(string title, string content) : this()
  29. {
  30. titleContent = title;
  31. contentContent = content;
  32. }
  33. private void Cancel_Click(object sender, RoutedEventArgs e)
  34. {
  35. IsDelete = false;
  36. this.Close();
  37. }
  38. private void OK_Click(object sender, RoutedEventArgs e)
  39. {
  40. IsDelete = true;
  41. this.Close();
  42. }
  43. private void Window_Loaded(object sender, RoutedEventArgs e)
  44. {
  45. Title.Text = titleContent;
  46. Content.Text = contentContent;
  47. }
  48. }
  49. }