ModuleInfo.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 OpenSEMI.ClientBase
  8. {
  9. public class ModuleInfo : PropertyChangedBase
  10. {
  11. private string _moduleID;
  12. public string ModuleID
  13. {
  14. get { return _moduleID; }
  15. set { _moduleID = value; NotifyOfPropertyChange("ModuleID"); }
  16. }
  17. private bool _IsInstalled;
  18. public bool IsInstalled
  19. {
  20. get { return _IsInstalled; }
  21. set { _IsInstalled = value; NotifyOfPropertyChange("IsInstalled"); }
  22. }
  23. private string _status;
  24. public string Status
  25. {
  26. get { return _status; }
  27. set { _status = value; NotifyOfPropertyChange("Status"); }
  28. }
  29. private bool _IsOnline;
  30. public bool IsOnline
  31. {
  32. get { return _IsOnline; }
  33. set { _IsOnline = value; NotifyOfPropertyChange("IsOnline"); }
  34. }
  35. //for LoadPort usage
  36. private bool _isJobDone;
  37. public bool IsJobDone
  38. {
  39. get { return _isJobDone; }
  40. set { _isJobDone = value;
  41. NotifyOfPropertyChange("IsJobDone");
  42. NotifyOfPropertyChange(nameof(UnitNameForeground));
  43. NotifyOfPropertyChange(nameof(UnitFontWeight));
  44. }
  45. }
  46. public string UnitNameForeground
  47. {
  48. get
  49. {
  50. return IsJobDone ? "Lime" : "Black";
  51. }
  52. }
  53. public string UnitFontWeight
  54. {
  55. get
  56. {
  57. return IsJobDone ? "Bold" : "Normal";
  58. }
  59. }
  60. private ModuleWaferManager _WaferManager;
  61. public ModuleWaferManager WaferManager
  62. {
  63. get { return _WaferManager; }
  64. set { _WaferManager = value; NotifyOfPropertyChange("WaferManager"); }
  65. }
  66. public void IsBusy()
  67. {
  68. }
  69. public ModuleInfo()
  70. {
  71. }
  72. public ModuleInfo(string modname, bool p_install, ModuleWaferManager p_modInfoWithWafer, bool p_online)
  73. {
  74. this._moduleID = modname;
  75. this._WaferManager = p_modInfoWithWafer;
  76. this._IsInstalled = p_install;
  77. this._IsOnline = p_online;
  78. }
  79. }
  80. }