Action11011511.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 Action11011511: ActionAnalysis
  11. {
  12. public Action11011511()
  13. {
  14. this.MenuId = ActionType.menuDeterminationOfNitridingDepthGBT113542005MetallographicMethod;
  15. //测量基准线
  16. ChoiseArray one = new ChoiseArray("parameter1", "测量基准线",
  17. new BooleanObject[]
  18. {
  19. new BooleanObject("1", "全方位线", true, null),
  20. new BooleanObject("2", "水平线", false, null),
  21. new BooleanObject("3", "垂直线", false, null)
  22. }
  23. );
  24. one.initialValue = 1;
  25. one.value = 1;
  26. lists.Add(one);
  27. //线长
  28. IntegerNumber two = new IntegerNumber(0, 10000);
  29. two.key = "parameter2";
  30. two.name = "线长";
  31. two.initialValue = 50;
  32. two.value = 50;
  33. lists.Add(two);
  34. //线宽
  35. IntegerNumber three = new IntegerNumber(0, 10000);
  36. three.key = "parameter3";
  37. three.name = "线宽";
  38. three.initialValue = 5;
  39. three.value = 5;
  40. lists.Add(three);
  41. //字体大小
  42. IntegerNumber four = new IntegerNumber(0, 10000);
  43. four.key = "parameter4";
  44. four.name = "字体大小";
  45. four.initialValue = 20;
  46. four.value = 20;
  47. lists.Add(four);
  48. //颜色
  49. ColorNumber five = new ColorNumber();
  50. five.key = "parameter5";
  51. five.name = "颜色";
  52. five.Value = Color.Green.ToArgb();
  53. lists.Add(five);
  54. }
  55. }
  56. }