ClientApp.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using MECF.Framework.Common.Equipment;
  2. using MECF.Framework.UI.Client.ClientBase;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. namespace EfemDualUI
  6. {
  7. public class ClientApp : BaseApp
  8. {
  9. public MainViewModel ViewModelSwitcher { get; set; }
  10. public ClientApp()
  11. {
  12. }
  13. protected override void OnInitialize()
  14. {
  15. WaferMoveManager.Instance.ShowCooling = false;
  16. WaferMoveManager.Instance.ShowAligner = false;
  17. ModuleManager.Initialize(new List<ModuleInfo>()
  18. {
  19. new ModuleInfo(ModuleName.LLA.ToString(),null, $"{ModuleName.LLA}.ModuleWaferList", true, true),
  20. new ModuleInfo(ModuleName.LLB.ToString(),null, $"{ModuleName.LLB}.ModuleWaferList", true, true),
  21. new ModuleInfo(ModuleName.EfemRobot.ToString(),null, $"{ModuleName.EfemRobot}.ModuleWaferList", true, true),
  22. new ModuleInfo(ModuleName.Aligner1.ToString(),null, $"{ModuleName.Aligner1}.ModuleWaferList", true, true),
  23. new ModuleInfo(ModuleName.Aligner2.ToString(),null, $"{ModuleName.Aligner2}.ModuleWaferList", true, true),
  24. new ModuleInfo(ModuleName.Cooling1.ToString(),null, $"{ModuleName.Cooling1}.ModuleWaferList", true, true),
  25. new ModuleInfo(ModuleName.Cooling2.ToString(),null, $"{ModuleName.Cooling2}.ModuleWaferList", true, true),
  26. new ModuleInfo(ModuleName.LP1.ToString(),null, $"{ModuleName.LP1}.ModuleWaferList", true, true),
  27. new ModuleInfo(ModuleName.LP2.ToString(),null, $"{ModuleName.LP2}.ModuleWaferList", true, true),
  28. new ModuleInfo(ModuleName.LP3.ToString(),null, $"{ModuleName.LP3}.ModuleWaferList", true, true),
  29. new ModuleInfo(ModuleName.TMRobot.ToString(),null, $"{ModuleName.TMRobot}.ModuleWaferList", true, true),
  30. new ModuleInfo(ModuleName.PMA.ToString(),null, $"{ModuleName.PMA}.ModuleWaferList", false, true),
  31. new ModuleInfo(ModuleName.PMB.ToString(),null, $"{ModuleName.PMB}.ModuleWaferList", false, true),
  32. new ModuleInfo(ModuleName.PMC.ToString(),null, $"{ModuleName.PMC}.ModuleWaferList", false, true),
  33. }
  34. );
  35. }
  36. public override void SwitchPage(string mainMenu, string subMenu, object parameter)
  37. {
  38. ViewModelSwitcher.SwitchPage(mainMenu, subMenu, parameter);
  39. }
  40. }
  41. }