Action10121.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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 Action10121 : ParamObject
  14. {
  15. public Action10121() {
  16. this.MenuId = ActionType.LengthSpecialMeasure;
  17. //直线颜色
  18. ColorNumber one = new ColorNumber();
  19. one.key = "parameter1";
  20. one.name = "直线颜色";
  21. one.Value = Color.Blue.ToArgb();
  22. lists.Add(one);
  23. //直线线宽
  24. IntegerNumber two = new IntegerNumber(1, 9999);
  25. two.key = "parameter2";
  26. two.name = "直线线宽";
  27. two.initialValue = 1;
  28. two.value = 1;
  29. lists.Add(two);
  30. //直线样式
  31. ChoiseArray three = new ChoiseArray("parameter3", "直线样式",
  32. new BooleanObject[]
  33. {
  34. new BooleanObject("0", "实线", true, null),
  35. new BooleanObject("1", "虚线(横)", false, null),
  36. new BooleanObject("2", "虚线(点)", false, null),
  37. new BooleanObject("3", "虚线(横 - 点)", false, null),
  38. new BooleanObject("4", "虚线(横 - 点 - 点)", false, null)
  39. });
  40. three.initialValue = 0;
  41. three.value = 0;
  42. lists.Add(three);
  43. //长度颜色
  44. ColorNumber four = new ColorNumber();
  45. four.key = "parameter4";
  46. four.name = "长度颜色";
  47. four.Value = Color.Blue.ToArgb();
  48. lists.Add(four);
  49. //长度线宽
  50. IntegerNumber five = new IntegerNumber(1, 9999);
  51. five.key = "parameter5";
  52. five.name = "长度线宽";
  53. five.initialValue = 1;
  54. five.value = 1;
  55. lists.Add(five);
  56. //长度样式
  57. ChoiseArray six = new ChoiseArray("parameter6", "长度样式",
  58. new BooleanObject[]
  59. {
  60. new BooleanObject("0", "实线", true, null),
  61. new BooleanObject("1", "虚线(横)", false, null),
  62. new BooleanObject("2", "虚线(点)", false, null),
  63. new BooleanObject("3", "虚线(横 - 点)", false, null),
  64. new BooleanObject("4", "虚线(横 - 点 - 点)", false, null)
  65. });
  66. six.initialValue = 0;
  67. six.value = 0;
  68. lists.Add(six);
  69. //平行线颜色
  70. ColorNumber seven = new ColorNumber();
  71. seven.key = "parameter7";
  72. seven.name = "平行线颜色";
  73. seven.Value = Color.Blue.ToArgb();
  74. lists.Add(seven);
  75. //平行线线宽
  76. IntegerNumber eight = new IntegerNumber(1, 9999);
  77. eight.key = "parameter8";
  78. eight.name = "平行线线宽";
  79. eight.initialValue = 1;
  80. eight.value = 1;
  81. lists.Add(eight);
  82. //平行线样式
  83. ChoiseArray nine = new ChoiseArray("parameter9", "平行线样式",
  84. new BooleanObject[]
  85. {
  86. new BooleanObject("0", "实线", true, null),
  87. new BooleanObject("1", "虚线(横)", false, null),
  88. new BooleanObject("2", "虚线(点)", false, null),
  89. new BooleanObject("3", "虚线(横 - 点)", false, null),
  90. new BooleanObject("4", "虚线(横 - 点 - 点)", false, null)
  91. });
  92. nine.initialValue = 0;
  93. nine.value = 0;
  94. lists.Add(nine);
  95. //小数
  96. IntegerNumber CalculatorDecimalDigits = new IntegerNumber(0, 10);
  97. CalculatorDecimalDigits.key = "CalculatorDecimalDigits";
  98. CalculatorDecimalDigits.name = "小数点位数";
  99. CalculatorDecimalDigits.initialValue = 2;
  100. CalculatorDecimalDigits.value = 2;
  101. lists.Add(CalculatorDecimalDigits);
  102. lists.Add(new BooleanObject("OpenWhileExportReport", "生成报告时打开设置", true, null));
  103. }
  104. }
  105. }