CassetteRobotWaferViewModel.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using Aitex.Core.Common;
  2. using Aitex.Core.Util;
  3. using MECF.Framework.Common.DataCenter;
  4. using MECF.Framework.Common.OperationCenter;
  5. using MECF.Framework.UI.Client.ClientBase;
  6. using OpenSEMI.ClientBase;
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. using System.Windows;
  13. using FurnaceUI.Models;
  14. namespace FurnaceUI.Views.Operations
  15. {
  16. public class CassetteRobotWaferViewModel : FurnaceUIViewModelBase
  17. {
  18. public CassetteRobotWaferViewModel()
  19. {
  20. }
  21. private ModuleInfo _cassetteRobotData;
  22. public ModuleInfo CassetteRobotData
  23. {
  24. get { return _cassetteRobotData; }
  25. set
  26. {
  27. _cassetteRobotData = value;
  28. NotifyOfPropertyChange("CassetteRobotData");
  29. }
  30. }
  31. [Subscription("StageA.CassettePresent")]
  32. public bool IsStageACassettePresent { get; set; }
  33. protected override void OnActivate()
  34. {
  35. base.OnActivate();
  36. }
  37. protected override void OnDeactivate(bool close)
  38. {
  39. base.OnDeactivate(close);
  40. //RefreshCassetteData.Stop();
  41. }
  42. protected override void InvokeAfterUpdateProperty(Dictionary<string, object> data)
  43. {
  44. RefreshCassetteDataTask();
  45. }
  46. private bool RefreshCassetteDataTask()
  47. {
  48. CassetteRobotData = ModuleManager.ModuleInfos["CassetteRobot"];
  49. return true;
  50. }
  51. public void CloseCmd()
  52. {
  53. ((Window)GetView()).Close();
  54. }
  55. }
  56. }