InputMatObject.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using PaintDotNet.Base;
  2. using PaintDotNet.CustomControl;
  3. using System;
  4. using System.Windows.Forms;
  5. namespace PaintDotNet.Data.Param
  6. {
  7. /// <summary>
  8. /// 输入图像
  9. /// </summary>
  10. public class InputMatObject : Args
  11. {
  12. /// <summary>
  13. /// 输入图像的名称,不为空
  14. /// </summary>
  15. private string friendlyName;
  16. /// <summary>
  17. /// 输入图像的文件路径,可能为空
  18. /// </summary>
  19. private string filePath;
  20. //public void numberParam_ValueChanged(object sender, EventArgs e)
  21. //{
  22. // if (sender.GetType() == typeof(NumberParamControl))
  23. // {
  24. // this.Value = ((NumberParamControl)sender).Value;
  25. // }
  26. // else if (sender.GetType() == typeof(NumericUpDown))
  27. // {
  28. // this.Value = ((NumericUpDown)sender).Value;
  29. // }
  30. //}
  31. public InputMatObject()
  32. {
  33. this.Type = Dtryt.Input;
  34. this.friendlyName = PdnResources.GetString("Untitled.FriendlyName");//待修改中文资源-scc备注 20191217
  35. this.filePath = null;
  36. }
  37. public string FriendlyName
  38. {
  39. get
  40. {
  41. return this.friendlyName;
  42. }
  43. set
  44. {
  45. this.friendlyName = value;
  46. }
  47. }
  48. public string FilePath
  49. {
  50. get
  51. {
  52. return this.filePath;
  53. }
  54. set
  55. {
  56. this.filePath = value;
  57. }
  58. }
  59. }
  60. }