MergeObject.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. using Prism.Mvvm;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Media.Imaging;
  8. namespace PDF_Office.Model.Dialog.ToolsDialogs
  9. {
  10. class MergeObject : BindableBase
  11. {
  12. private string docName;
  13. /// <summary>
  14. /// 文档名
  15. /// </summary>
  16. public string DocName
  17. {
  18. get { return docName; }
  19. set
  20. {
  21. SetProperty(ref docName, value);
  22. }
  23. }
  24. private string docSize;
  25. /// <summary>
  26. /// 文档大小
  27. /// </summary>
  28. public string DocSize
  29. {
  30. get { return docSize; }
  31. set
  32. {
  33. SetProperty(ref docSize, value);
  34. }
  35. }
  36. private BitmapSource docThumbnail;
  37. /// <summary>
  38. /// 文档首张图片
  39. /// </summary>
  40. public BitmapSource DocThumbnail
  41. {
  42. get { return docThumbnail; }
  43. set
  44. {
  45. SetProperty(ref docThumbnail, value);
  46. }
  47. }
  48. private int sdkPageCount;
  49. /// <summary>
  50. /// SDK获取到的页面数量
  51. /// </summary>
  52. public int SDKPageCount
  53. {
  54. get { return sdkPageCount; }
  55. set
  56. {
  57. SetProperty(ref sdkPageCount, value);
  58. }
  59. }
  60. private string docPageCount;
  61. /// <summary>
  62. /// 文档页数
  63. /// </summary>
  64. public string DocPageCount
  65. {
  66. get { return docPageCount; }
  67. set
  68. {
  69. SetProperty(ref docPageCount, value);
  70. }
  71. }
  72. private string filePath;
  73. /// <summary>
  74. /// 文档文件路径
  75. /// </summary>
  76. public string FilePath
  77. {
  78. get { return filePath; }
  79. set
  80. {
  81. SetProperty(ref filePath, value);
  82. }
  83. }
  84. private string setPageRange;
  85. /// <summary>
  86. /// 设置的文档页面范围
  87. /// </summary>
  88. public string SetPageRange
  89. {
  90. get { return setPageRange; }
  91. set
  92. {
  93. SetProperty(ref setPageRange, value);
  94. }
  95. }
  96. private string password="";
  97. /// <summary>
  98. /// 密码
  99. /// </summary>
  100. public string Password
  101. {
  102. get { return password; }
  103. set
  104. {
  105. SetProperty(ref password, value);
  106. }
  107. }
  108. /// <summary>
  109. /// 显示上半部分线
  110. /// </summary>
  111. private bool isBackwards = false;
  112. public bool IsBackwards
  113. {
  114. get { return isBackwards; }
  115. set
  116. {
  117. SetProperty(ref isBackwards, value);
  118. }
  119. }
  120. /// <summary>
  121. /// 显示下半部分线
  122. /// </summary>
  123. private bool isForward=false;
  124. public bool IsForward
  125. {
  126. get { return isForward; }
  127. set
  128. {
  129. SetProperty(ref isForward, value);
  130. }
  131. }
  132. private int itemIndex;
  133. public int ItemIndex
  134. {
  135. get { return itemIndex; }
  136. set
  137. {
  138. SetProperty(ref itemIndex, value);
  139. }
  140. }
  141. }
  142. }