InputMatObject.cs 1.6 KB

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