Stamp.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. using ComPDFKitViewer.AnnotEvent;
  2. using Prism.Mvvm;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows.Media.Imaging;
  9. namespace PDF_Office.Model.AnnotPanel
  10. {
  11. public class Stamp : BindableBase
  12. {
  13. private string stampText;
  14. public string StampText
  15. {
  16. get { return stampText; }
  17. set
  18. {
  19. SetProperty(ref stampText, value);
  20. }
  21. }
  22. private string sourcePath;
  23. public string SourcePath
  24. {
  25. get { return sourcePath; }
  26. set
  27. {
  28. SetProperty(ref sourcePath, value);
  29. }
  30. }
  31. private int maxWidth;
  32. public int MaxWidth
  33. {
  34. get { return maxWidth; }
  35. set
  36. {
  37. SetProperty(ref maxWidth, value);
  38. }
  39. }
  40. private int maxHeight;
  41. public int MaxHeight
  42. {
  43. get { return maxHeight; }
  44. set
  45. {
  46. SetProperty(ref maxHeight, value);
  47. }
  48. }
  49. private StampType type;
  50. public StampType Type
  51. {
  52. get { return type; }
  53. set
  54. {
  55. SetProperty(ref type, value);
  56. }
  57. }
  58. private string author;
  59. public string Author
  60. {
  61. get { return author; }
  62. set
  63. {
  64. SetProperty(ref author, value);
  65. }
  66. }
  67. private double opacity;
  68. public double Opacity
  69. {
  70. get { return opacity; }
  71. set
  72. {
  73. SetProperty(ref opacity, value);
  74. }
  75. }
  76. private BitmapSource imageSource;
  77. public BitmapSource ImageSource
  78. {
  79. get { return imageSource; }
  80. set
  81. {
  82. SetProperty(ref imageSource, value);
  83. }
  84. }
  85. private TextStampColor textColor;
  86. public TextStampColor TextColor
  87. {
  88. get { return textColor; }
  89. set
  90. {
  91. SetProperty(ref textColor, value);
  92. }
  93. }
  94. private string stampTextDate;
  95. public string StampTextDate
  96. {
  97. get { return stampTextDate; }
  98. set
  99. {
  100. SetProperty(ref stampTextDate, value);
  101. }
  102. }
  103. private TextStampSharp textSharp;
  104. public TextStampSharp TextSharp
  105. {
  106. get { return textSharp; }
  107. set
  108. {
  109. SetProperty(ref textSharp, value);
  110. }
  111. }
  112. private bool isCheckedDate;
  113. public bool IsCheckedDate
  114. {
  115. get { return isCheckedDate; }
  116. set
  117. {
  118. SetProperty(ref isCheckedDate, value);
  119. }
  120. }
  121. private bool isCheckedTime;
  122. public bool IsCheckedTime
  123. {
  124. get { return isCheckedTime; }
  125. set
  126. {
  127. SetProperty(ref isCheckedTime, value);
  128. }
  129. }
  130. }
  131. }