DisplayByWaferType.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using Caliburn.Micro.Core;
  2. namespace FurnaceUI.DataModule
  3. {
  4. /// <summary>
  5. /// 用于分类显示waferType
  6. /// </summary>
  7. public class DisplayByWaferType : PropertyChangedBase
  8. {
  9. public string Name { get; set; }
  10. public string GroupName { get; set; }
  11. public string Value { get; set; }
  12. private bool _isSelected;
  13. public bool IsSelected
  14. {
  15. get => _isSelected;
  16. set
  17. {
  18. if (_isSelected != value)
  19. {
  20. _isSelected = value;
  21. NotifyOfPropertyChange(()=> IsSelected);
  22. }
  23. }
  24. }
  25. private string _bgColor;
  26. public string BgColor
  27. {
  28. get => _bgColor;
  29. set
  30. {
  31. if (_bgColor != value)
  32. {
  33. _bgColor = value;
  34. NotifyOfPropertyChange(() => IsSelected);
  35. }
  36. }
  37. }
  38. private int _fontSize;
  39. public int FontSize
  40. {
  41. get => _fontSize;
  42. set
  43. {
  44. if (_fontSize != value)
  45. {
  46. _fontSize = value;
  47. NotifyOfPropertyChange(() => IsSelected);
  48. }
  49. }
  50. }
  51. }
  52. }