Args.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace PaintDotNet.Data.Param
  6. {
  7. [Serializable]
  8. public class Args
  9. {
  10. /// <summary>
  11. /// 参数类型,回头改成枚举
  12. /// 1数组(下拉或单选)
  13. /// 2整数数值范围(滑动块)
  14. /// 3小数数值范围(滑动块)
  15. /// 4正奇数数值范围(滑动块)
  16. /// 5输入图像
  17. /// 6输出图像
  18. /// 7抉择
  19. /// </summary>
  20. private Dtryt type;
  21. /// <summary>
  22. /// 参数的键
  23. /// </summary>
  24. public string key;
  25. /// <summary>
  26. /// 参数的初始值
  27. /// </summary>
  28. public object initialValue;
  29. /// <summary>
  30. /// 参数的值
  31. /// </summary>
  32. public object value;
  33. /// <summary>
  34. /// 参数名称
  35. /// </summary>
  36. public string name;
  37. public Dtryt Type
  38. {
  39. get
  40. {
  41. return this.type;
  42. }
  43. set
  44. {
  45. this.type = value;
  46. }
  47. }
  48. public string Key
  49. {
  50. get
  51. {
  52. return this.key;
  53. }
  54. set
  55. {
  56. this.key = value;
  57. }
  58. }
  59. public string Name
  60. {
  61. get
  62. {
  63. return this.name;
  64. }
  65. set
  66. {
  67. this.name = value;
  68. }
  69. }
  70. public object Value
  71. {
  72. get
  73. {
  74. return this.value;
  75. }
  76. set
  77. {
  78. this.value = value;
  79. }
  80. }
  81. }
  82. }