ModuleWaferManager.cs 1.5 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. using ACom = Aitex.Core.Common;
  8. namespace OpenSEMI.ClientBase
  9. {
  10. public class ModuleWaferManager : PropertyChangedBase
  11. {
  12. public ModuleWaferManager(string _mod)
  13. {
  14. this.ModuleID = _mod;
  15. this.wafers = new List<WaferInfo>();
  16. }
  17. public List<WaferInfo> Wafers
  18. {
  19. get { return this.wafers; }
  20. set
  21. {
  22. this.wafers = value;
  23. this.RaisePropertyChangedEventImmediately("Wafers");
  24. }
  25. }
  26. public WaferInfo TopWafer
  27. {
  28. get { return this.topWafer; }
  29. set
  30. {
  31. if (this.topWafer != value)
  32. {
  33. this.topWafer = value;
  34. this.NotifyOfPropertyChange("TopWafer");
  35. }
  36. }
  37. }
  38. public bool HasWafer
  39. {
  40. get { return this.hasWafer; }
  41. set
  42. {
  43. if (this.hasWafer != value)
  44. {
  45. this.hasWafer = value;
  46. this.RaisePropertyChangedEventImmediately("HasWafer");
  47. }
  48. }
  49. }
  50. public string ModuleID;
  51. private bool hasWafer = false;
  52. private WaferInfo topWafer;
  53. private List<WaferInfo> wafers;
  54. }
  55. }