Action1001.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. using PaintDotNet.Data.Param;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace PaintDotNet.Data.Action
  8. {
  9. /// <summary>
  10. /// 多相含量
  11. /// </summary>
  12. public class Action1001 : ParamObject
  13. {
  14. public Action1001() {
  15. this.MenuId = ActionType.MultiphaseContent;
  16. //多相数量
  17. ChoiseArray one = new ChoiseArray("parameter1", "多相数量",
  18. new BooleanObject[]
  19. {
  20. new BooleanObject("1", "1", true, null),
  21. new BooleanObject("2", "2", false, null),
  22. new BooleanObject("3", "3", false, null),
  23. new BooleanObject("4", "4", false, null),
  24. new BooleanObject("5", "5", false, null),
  25. new BooleanObject("6", "6", false, null),
  26. new BooleanObject("7", "7", false, null),
  27. new BooleanObject("8", "8", false, null)
  28. }
  29. );
  30. one.initialValue = 0;
  31. one.value = 0;
  32. lists.Add(one);
  33. //勾选孔洞删除
  34. BooleanObject two = new BooleanObject();
  35. two.key = "parameter2";
  36. two.name = "勾选孔洞删除";
  37. two.initialValue = false;
  38. two.Value = false;
  39. lists.Add(two);
  40. //孔洞删除下限
  41. IntegerNumber three = new IntegerNumber(0, 10000000);
  42. three.key = "parameter3";
  43. three.name = "孔洞删除下限";
  44. three.initialValue = 0;
  45. three.value = 0;
  46. lists.Add(three);
  47. //孔洞删除上限
  48. IntegerNumber four = new IntegerNumber(0, 10000000);
  49. four.key = "parameter4";
  50. four.name = "孔洞删除上限";
  51. four.initialValue = 0;
  52. four.value = 0;
  53. lists.Add(four);
  54. //勾选碎屑删除
  55. BooleanObject five = new BooleanObject();
  56. five.key = "parameter5";
  57. five.name = "勾选碎屑删除";
  58. five.initialValue = false;
  59. five.Value = false;
  60. lists.Add(five);
  61. //碎屑删除下限
  62. IntegerNumber six = new IntegerNumber(0, 10000000);
  63. six.key = "parameter6";
  64. six.name = "碎屑删除下限";
  65. six.initialValue = 0;
  66. six.value = 0;
  67. lists.Add(six);
  68. //碎屑删除上限
  69. IntegerNumber seven = new IntegerNumber(0, 10000000);
  70. seven.key = "parameter7";
  71. seven.name = "碎屑删除上限";
  72. seven.initialValue = 0;
  73. seven.value = 0;
  74. lists.Add(seven);
  75. //小数
  76. IntegerNumber eight = new IntegerNumber(0, 10);
  77. eight.key = "CalculatorDecimalDigits";
  78. eight.name = "小数点位数";
  79. eight.initialValue = 2;
  80. eight.value = 2;
  81. lists.Add(eight);
  82. lists.Add(new BooleanObject("OpenWhileExportReport", "生成报告时打开设置", true, null));
  83. lists.Add(new BooleanObject("ExportResults", "导出结果", true, null));
  84. lists.Add(new BooleanObject("ExportReports", "生成报告", true, null));
  85. lists.Add(new BooleanObject("ExportProjects", "导出项目", true, null));
  86. }
  87. }
  88. }