Signature.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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.Ink;
  8. using System.Windows.Media;
  9. namespace PDF_Master.Model.AnnotPanel
  10. {
  11. public enum SignatureType
  12. {
  13. TextType,
  14. Drawing,
  15. ImageType
  16. }
  17. public class Signature : BindableBase
  18. {
  19. #region 文案
  20. private string _T_MenuRightMenuSignatureAnnot_Export = App.MainPageLoader.GetString("MenuRightMenuSignatureAnnot_Export");
  21. public string T_MenuRightMenuSignatureAnnot_Export
  22. {
  23. get { return _T_MenuRightMenuSignatureAnnot_Export; }
  24. set
  25. {
  26. SetProperty(ref _T_MenuRightMenuSignatureAnnot_Export, value);
  27. }
  28. }
  29. private string _T_MenuRightMenuSignatureAnnotExport_PNG = App.MainPageLoader.GetString("MenuRightMenuSignatureAnnotExport_PNG");
  30. public string T_MenuRightMenuSignatureAnnotExport_PNG
  31. {
  32. get { return _T_MenuRightMenuSignatureAnnotExport_PNG; }
  33. set
  34. {
  35. SetProperty(ref _T_MenuRightMenuSignatureAnnotExport_PNG, value);
  36. }
  37. }
  38. private string _T_MenuRightMenuSignatureAnnotExport_PDF = App.MainPageLoader.GetString("MenuRightMenuSignatureAnnotExport_PDF");
  39. public string T_MenuRightMenuSignatureAnnotExport_PDF
  40. {
  41. get { return _T_MenuRightMenuSignatureAnnotExport_PDF; }
  42. set
  43. {
  44. SetProperty(ref _T_MenuRightMenuSignatureAnnotExport_PDF, value);
  45. }
  46. }
  47. private string _T_MenuRightMenuSignatureAnnot_Delete = App.MainPageLoader.GetString("MenuRightMenuSignatureAnnot_Delete");
  48. public string T_MenuRightMenuSignatureAnnot_Delete
  49. {
  50. get { return _T_MenuRightMenuSignatureAnnot_Delete; }
  51. set
  52. {
  53. SetProperty(ref _T_MenuRightMenuSignatureAnnot_Delete, value);
  54. }
  55. }
  56. private string _T_MenuRightMenuSignatureAnnot_DeleteAll = App.MainPageLoader.GetString("MenuRightMenuSignatureAnnot_DeleteAll");
  57. public string T_MenuRightMenuSignatureAnnot_DeleteAll
  58. {
  59. get { return _T_MenuRightMenuSignatureAnnot_DeleteAll; }
  60. set
  61. {
  62. SetProperty(ref _T_MenuRightMenuSignatureAnnot_DeleteAll, value);
  63. }
  64. }
  65. private void IntString()
  66. {
  67. T_MenuRightMenuSignatureAnnot_Export = App.MainPageLoader.GetString("MenuRightMenuSignatureAnnot_Export");
  68. T_MenuRightMenuSignatureAnnotExport_PNG = App.MainPageLoader.GetString("MenuRightMenuSignatureAnnotExport_PNG");
  69. T_MenuRightMenuSignatureAnnotExport_PDF = App.MainPageLoader.GetString("MenuRightMenuSignatureAnnotExport_PDF");
  70. T_MenuRightMenuSignatureAnnot_Delete = App.MainPageLoader.GetString("MenuRightMenuSignatureAnnot_Delete");
  71. T_MenuRightMenuSignatureAnnot_DeleteAll = App.MainPageLoader.GetString("MenuRightMenuSignatureAnnot_DeleteAll");
  72. }
  73. #endregion
  74. private string sourcePath;
  75. public string SourcePath
  76. {
  77. get { return sourcePath; }
  78. set
  79. {
  80. SetProperty(ref sourcePath, value);
  81. }
  82. }
  83. private string drawingPath;
  84. public string DrawingPath
  85. {
  86. get { return drawingPath; }
  87. set
  88. {
  89. SetProperty(ref drawingPath, value);
  90. }
  91. }
  92. public SignatureType Type { get; set; }
  93. public double inkThickness { get; set; }
  94. public Color inkColor { get; set; }
  95. }
  96. }