Action11014.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 Action11014 : ParamObject
  14. {
  15. public Action11014() {
  16. //线长
  17. IntegerNumber one = new IntegerNumber(1, 50);
  18. one.key = "parameter1";
  19. one.name = PdnResources.GetString("Menu.Linelength.text");
  20. one.initialValue = 1;
  21. one.value = 1;
  22. lists.Add(one);
  23. //线宽
  24. IntegerNumber two = new IntegerNumber(1, 50);
  25. two.key = "parameter2";
  26. two.name = PdnResources.GetString("Menu.Linewidth.text");
  27. two.initialValue = 1;
  28. two.value = 1;
  29. lists.Add(two);
  30. //基准线
  31. ColorNumber three = new ColorNumber();
  32. three.key = "parameter3";
  33. three.name = "基准线";
  34. three.Value = Color.Red.ToArgb();
  35. lists.Add(three);
  36. //勾选完全脱碳层
  37. BooleanObject four = new BooleanObject();
  38. four.key = "parameter4";
  39. four.name = "是否勾选" + PdnResources.GetString("Menu.Completelydecarburizedlayer.text");
  40. four.initialValue = false;
  41. four.Value = false;
  42. lists.Add(four);
  43. //完全脱碳层
  44. ColorNumber five = new ColorNumber();
  45. five.key = "parameter5";
  46. five.name = PdnResources.GetString("Menu.Completelydecarburizedlayer.text");
  47. five.Value = Color.Green.ToArgb();
  48. lists.Add(five);
  49. //钢样表面
  50. ColorNumber six = new ColorNumber();
  51. six.key = "parameter6";
  52. six.name = "钢样表面";
  53. six.Value = Color.Blue.ToArgb();
  54. lists.Add(six);
  55. //勾选有效脱碳层
  56. BooleanObject seven = new BooleanObject();
  57. seven.key = "parameter7";
  58. seven.name = "是否勾选" + PdnResources.GetString("Menu.Effectivedecarbonizationlayer.text");
  59. seven.initialValue = false;
  60. seven.Value = false;
  61. lists.Add(seven);
  62. //有效脱碳层
  63. ColorNumber eight = new ColorNumber();
  64. eight.key = "parameter8";
  65. eight.name = PdnResources.GetString("Menu.Effectivedecarbonizationlayer.text");
  66. eight.Value = Color.Pink.ToArgb();
  67. lists.Add(eight);
  68. //勾选部分脱碳层
  69. BooleanObject nine = new BooleanObject();
  70. nine.key = "parameter9";
  71. nine.name = "是否勾选" + PdnResources.GetString("Menu.Partiallydecarburizedlayer.text");
  72. nine.initialValue = false;
  73. nine.Value = false;
  74. lists.Add(nine);
  75. //部分脱碳层
  76. ColorNumber ten = new ColorNumber();
  77. ten.key = "parameter10";
  78. ten.name = PdnResources.GetString("Menu.Partiallydecarburizedlayer.text");
  79. ten.Value = Color.Yellow.ToArgb();
  80. lists.Add(ten);
  81. //测量层-完全脱碳层
  82. BooleanObject eleven = new BooleanObject();
  83. eleven.key = "parameter11";
  84. eleven.name = "测量层" + PdnResources.GetString("Menu.Completelydecarburizedlayer.text");
  85. eleven.initialValue = false;
  86. eleven.Value = false;
  87. lists.Add(eleven);
  88. //测量层-有效脱碳层
  89. BooleanObject twelve = new BooleanObject();
  90. twelve.key = "parameter12";
  91. twelve.name = "测量层" + PdnResources.GetString("Menu.Effectivedecarbonizationlayer.text");
  92. twelve.initialValue = false;
  93. twelve.Value = false;
  94. lists.Add(twelve);
  95. IntegerNumber CalculatorDecimalDigits = new IntegerNumber(0, 10);
  96. CalculatorDecimalDigits.key = "CalculatorDecimalDigits";
  97. CalculatorDecimalDigits.name = "小数点位数";
  98. CalculatorDecimalDigits.initialValue = 2;
  99. CalculatorDecimalDigits.value = 2;
  100. lists.Add(CalculatorDecimalDigits);
  101. lists.Add(new BooleanObject("OpenWhileExportReport", "生成报告时打开设置", true, null));
  102. }
  103. }
  104. }