CPDFDeleteDialog.xaml.cs 998 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Windows;
  2. namespace Compdfkit_Tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI
  3. {
  4. public partial class CPDFDeleteDialog : Window
  5. {
  6. private string titleContent = "";
  7. private string contentContent = "";
  8. public bool IsDelete = false;
  9. public CPDFDeleteDialog()
  10. {
  11. InitializeComponent();
  12. }
  13. public CPDFDeleteDialog(string title, string content) : this()
  14. {
  15. titleContent = title;
  16. contentContent = content;
  17. }
  18. private void Cancel_Click(object sender, RoutedEventArgs e)
  19. {
  20. IsDelete = false;
  21. this.Close();
  22. }
  23. private void OK_Click(object sender, RoutedEventArgs e)
  24. {
  25. IsDelete = true;
  26. this.Close();
  27. }
  28. private void Window_Loaded(object sender, RoutedEventArgs e)
  29. {
  30. Title.Text = titleContent;
  31. Content.Text = contentContent;
  32. }
  33. }
  34. }