Action1003.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. public class Action1003 : ParamObject
  10. {
  11. public Action1003() {
  12. this.MenuId = ActionType.TwoComparisonCases;
  13. //多相数量
  14. ChoiseArray one = new ChoiseArray("parameter1", "筛选方式",
  15. new BooleanObject[]
  16. {
  17. new BooleanObject("1", "面积", true, null),
  18. new BooleanObject("2", "面积比", false, null),
  19. new BooleanObject("3", "周长", false, null),
  20. new BooleanObject("4", "短轴", false, null),
  21. new BooleanObject("5", "长轴",false, null),
  22. new BooleanObject("6", "倾斜角度", false, null),
  23. new BooleanObject("7", "高度",false, null),
  24. new BooleanObject("8", "宽度", false, null),
  25. new BooleanObject("9", "宽高比",true, null),
  26. new BooleanObject("10", "长径",false, null),
  27. new BooleanObject("11", "短径",false, null),
  28. new BooleanObject("12", "外接圆直径", false, null),
  29. new BooleanObject("13", "球化率",false, null),
  30. new BooleanObject("14", "等积圆直径", false, null),
  31. new BooleanObject("15", "最大卡规直径",false, null),
  32. new BooleanObject("16", "最小卡规直径", false, null),
  33. new BooleanObject("17", "平均卡规直径", false, null),
  34. new BooleanObject("18", "纤维长度", false, null),
  35. }
  36. );
  37. one.initialValue = 1;
  38. one.value = 1;
  39. lists.Add(one);
  40. //小数
  41. IntegerNumber eight = new IntegerNumber(0, 10);
  42. eight.key = "CalculatorDecimalDigits";
  43. eight.name = "小数点位数";
  44. eight.initialValue = 2;
  45. eight.value = 2;
  46. lists.Add(eight);
  47. lists.Add(new BooleanObject("OpenWhileExportReport", "生成报告时打开设置", true, null));
  48. }
  49. }
  50. }