PDFToolsList.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace PDFSettings
  8. {
  9. /// <summary>
  10. /// 所有工具列表
  11. /// </summary>
  12. public class AllPDFToolsList : List<ToolItem>
  13. {
  14. }
  15. /// <summary>
  16. /// 快捷工具列表
  17. /// </summary>
  18. public class QuickPDFToolsList : List<ToolItem>
  19. {
  20. }
  21. public class ToolItem : INotifyPropertyChanged
  22. {
  23. public event PropertyChangedEventHandler PropertyChanged = delegate { };
  24. private bool _isShowConciseContent = false;
  25. /// <summary>
  26. /// PDF工具集合UI是否显示为只有标题和图标的内容
  27. /// </summary>
  28. public bool IsShowConciseContent
  29. {
  30. get { return _isShowConciseContent; }
  31. set
  32. {
  33. _isShowConciseContent = value;
  34. PropertyChanged(this, new PropertyChangedEventArgs("IsShowConciseContent"));
  35. }
  36. }
  37. #region 重要属性
  38. /// <summary>
  39. /// 是否为新增工具
  40. /// </summary>
  41. public bool IsNew { get; set; }
  42. #region 工具类型
  43. /// <summary>
  44. /// 排序的PDF工具类型:优势工具、常用工具、付费工具等
  45. /// </summary>
  46. public int ToolType { get; set; }
  47. /// <summary>
  48. /// 某类型PDF工具的排序Id号
  49. /// </summary>
  50. public string strToolType { get; set; }
  51. #endregion
  52. #region 功能
  53. /// <summary>
  54. /// PDF工具某功能的枚举值:用来标识功能
  55. /// </summary>
  56. public int FnType { get; set; }
  57. /// <summary>
  58. /// 功能名称:拆分功能、合并功能、转档功能等
  59. /// </summary>
  60. public string strFnType { get; set; }
  61. #endregion
  62. #region 显示内容
  63. /// <summary>
  64. /// 图标路径
  65. /// </summary>
  66. public string Image { get; set; }
  67. /// <summary>
  68. /// 功能说明内容
  69. /// </summary>
  70. public string TitleInfo { get; set; }
  71. /// <summary>
  72. /// 功能标题
  73. /// </summary>
  74. public string Title { get; set; }
  75. #endregion
  76. #endregion
  77. }
  78. }