Action1013.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. using PaintDotNet.Data.Param;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Drawing;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace PaintDotNet.Data.Action
  9. {
  10. /// <summary>
  11. /// 计数统计
  12. /// </summary>
  13. public class Action1013 : ParamObject
  14. {
  15. public Action1013() {
  16. this.MenuId = ActionType.CountStatistics;
  17. //形状
  18. ChoiseArray one = new ChoiseArray("parameter1", "1点设置形状",
  19. new BooleanObject[]
  20. {
  21. new BooleanObject("1", "圆形", true, null),
  22. new BooleanObject("2", "方形", false, null),
  23. }
  24. );
  25. one.initialValue = 1;
  26. one.value = 1;
  27. lists.Add(one);
  28. //样式
  29. ChoiseArray two = new ChoiseArray("parameter2", "1点设置样式",
  30. new BooleanObject[]
  31. {
  32. new BooleanObject("1", "实心", true, null),
  33. new BooleanObject("2", "空心", false, null),
  34. }
  35. );
  36. two.initialValue = 1;
  37. two.value = 1;
  38. lists.Add(two);
  39. //1点设置尺寸
  40. IntegerNumber three = new IntegerNumber(1, 9999);
  41. three.key = "parameter3";
  42. three.name = "1点设置尺寸";
  43. three.initialValue = 30;
  44. three.value = 30;
  45. lists.Add(three);
  46. //1点设置线宽
  47. IntegerNumber four = new IntegerNumber(1, 9999);
  48. four.key = "parameter4";
  49. four.name = "1点设置线宽";
  50. four.initialValue = 2;
  51. four.value = 2;
  52. lists.Add(four);
  53. //1点设置颜色
  54. ColorNumber five = new ColorNumber();
  55. five.key = "parameter5";
  56. five.name = "1点设置颜色";
  57. five.Value = Color.Blue.ToArgb();
  58. lists.Add(five);
  59. //形状
  60. ChoiseArray ten = new ChoiseArray("parameter10", "0.5点设置形状",
  61. new BooleanObject[]
  62. {
  63. new BooleanObject("1", "圆形", true, null),
  64. new BooleanObject("2", "方形", false, null),
  65. }
  66. );
  67. ten.initialValue = 1;
  68. ten.value = 1;
  69. lists.Add(ten);
  70. //样式
  71. ChoiseArray eleven = new ChoiseArray("parameter11", "0.5点设置样式",
  72. new BooleanObject[]
  73. {
  74. new BooleanObject("1", "实心", true, null),
  75. new BooleanObject("2", "空心", false, null),
  76. }
  77. );
  78. eleven.initialValue = 1;
  79. eleven.value = 1;
  80. lists.Add(eleven);
  81. //0.5点设置尺寸
  82. IntegerNumber six = new IntegerNumber(1, 9999);
  83. six.key = "parameter6";
  84. six.name = "0.5点设置尺寸";
  85. six.initialValue = 30;
  86. six.value = 30;
  87. lists.Add(six);
  88. //0.5点设置线宽
  89. IntegerNumber seven = new IntegerNumber(1, 9999);
  90. seven.key = "parameter7";
  91. seven.name = "0.5点设置线宽";
  92. seven.initialValue = 2;
  93. seven.value = 2;
  94. lists.Add(seven);
  95. //0.5点设置颜色
  96. ColorNumber eight = new ColorNumber();
  97. eight.key = "parameter8";
  98. eight.name = "0.5点设置颜色";
  99. eight.Value = Color.Yellow.ToArgb();
  100. lists.Add(eight);
  101. //小数
  102. IntegerNumber nine = new IntegerNumber(0, 10);
  103. nine.key = "CalculatorDecimalDigits";
  104. nine.name = "小数点位数";
  105. nine.initialValue = 2;
  106. nine.value = 2;
  107. lists.Add(nine);
  108. lists.Add(new BooleanObject("OpenWhileExportReport", "生成报告时打开设置", true, null));
  109. }
  110. }
  111. }