PMParameter.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Caliburn.Micro.Core;
  7. namespace EfemDualUI.Views.PMs
  8. {
  9. public enum ParameterType
  10. {
  11. Default, //feedback column is textblock, setpoint column is textbox
  12. Share, //feedback, setpoint share one readonly column
  13. DropDownList //feedback column is textblock, setpoint column is a dropdownlist
  14. }
  15. public class PMParameter : PropertyChangedBase
  16. {
  17. public string Name { get; set; }
  18. public string Display { get; set; }
  19. public ParameterType Type { get; set; }
  20. private string _Feedback;
  21. public string Feedback
  22. {
  23. get { return _Feedback; }
  24. set { _Feedback = value; NotifyOfPropertyChange("Feedback"); }
  25. }
  26. private string _Setpoint;
  27. public string Setpoint
  28. {
  29. get { return _Setpoint; }
  30. set { _Setpoint = value; NotifyOfPropertyChange("Setpoint"); }
  31. }
  32. private bool _SetpointSaved;
  33. public bool SetpointSaved
  34. {
  35. get { return _SetpointSaved; }
  36. set { _SetpointSaved = value; NotifyOfPropertyChange("SetpointSaved"); }
  37. }
  38. private bool _SetpointEnabled;
  39. public bool SetpointEnabled
  40. {
  41. get { return _SetpointEnabled; }
  42. set { _SetpointEnabled = value; NotifyOfPropertyChange("SetpointEnabled"); }
  43. }
  44. private List<string> _Selections;
  45. public List<string> Selections //for dropdown list
  46. {
  47. get { return _Selections; }
  48. set { _Selections = value; NotifyOfPropertyChange("Selections"); }
  49. }
  50. }
  51. }