Action110161.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. public class Action110161 : ActionAnalysis
  11. {
  12. public Action110161() {
  13. this.MenuId = ActionType.HighSpeedSteelCarbonBlockGB4462;
  14. //筛选
  15. BooleanObject one = new BooleanObject();
  16. one.key = "parameter1";
  17. one.name = PdnResources.GetString("Menu.filter.text");
  18. one.initialValue = false;
  19. one.Value = false;
  20. lists.Add(one);
  21. //筛选下限
  22. IntegerNumber two = new IntegerNumber(0, 10000);
  23. two.key = "parameter2";
  24. two.name = PdnResources.GetString("Menu.filter.text") + "下限";
  25. two.initialValue = 0;
  26. two.value = 0;
  27. lists.Add(two);
  28. //筛选上限
  29. IntegerNumber three = new IntegerNumber(0, 10000);
  30. three.key = "parameter3";
  31. three.name = PdnResources.GetString("Menu.filter.text") + "上限";
  32. three.initialValue = 0;
  33. three.value = 0;
  34. lists.Add(three);
  35. //高速工具钢类别
  36. ChoiseArray four = new ChoiseArray("parameter4", "高速工具钢类别",
  37. new BooleanObject[]
  38. {
  39. new BooleanObject("1", "钨系", true, null),
  40. new BooleanObject("2", "钼系", false, null)
  41. }
  42. );
  43. four.initialValue = 1;
  44. four.value = 1;
  45. lists.Add(four);
  46. //系列
  47. ChoiseArray five = new ChoiseArray("parameter5", "系列",
  48. new BooleanObject[]
  49. {
  50. new BooleanObject("1", "A列", true, null),
  51. new BooleanObject("2", "B列", false, null)
  52. }
  53. );
  54. five.initialValue = 1;
  55. five.value = 1;
  56. lists.Add(five);
  57. //最大尺寸碳化物颜色
  58. ColorNumber six = new ColorNumber();
  59. six.key = "parameter6";
  60. six.name = "最大尺寸碳化物颜色";
  61. six.Value = Color.Green.ToArgb();
  62. lists.Add(six);
  63. }
  64. }
  65. }