SelfCheckModifyViewModel.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using Caliburn.Micro;
  2. using Caliburn.Micro.Core;
  3. using MECF.Framework.Common.Equipment;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows;
  10. using FurnaceUI.Models;
  11. namespace FurnaceUI.Views.Operations
  12. {
  13. public class SelfCheckModifyViewModel : FurnaceUIViewModelBase
  14. {
  15. public void ModifyCmd(string module)
  16. {
  17. var windowManager = IoC.Get<IWindowManager>();
  18. switch (module)
  19. {
  20. case "CassetteRobot":
  21. CassetteModifyViewModel cassetteModifyViewModel = new CassetteModifyViewModel(ModuleName.CarrierRobot.ToString());
  22. (windowManager as WindowManager)?.ShowDialogWithTitle(cassetteModifyViewModel, null, "CarrierRobot Wafer");
  23. break;
  24. case "WaferRobot":
  25. WaferRobotModifyViewModel waferRobotModifyViewModel = new WaferRobotModifyViewModel(ModuleName.WaferRobot.ToString());
  26. (windowManager as WindowManager)?.ShowDialogWithTitle(waferRobotModifyViewModel, null, "WaferRobot Wafer");
  27. break;
  28. case "FMIS1":
  29. cassetteModifyViewModel = new CassetteModifyViewModel(ModuleName.FIMS1.ToString());
  30. (windowManager as WindowManager)?.ShowDialogWithTitle(cassetteModifyViewModel, null, "FMIS1 Wafer");
  31. break;
  32. case "FMIS2":
  33. cassetteModifyViewModel = new CassetteModifyViewModel(ModuleName.FIMS2.ToString());
  34. (windowManager as WindowManager)?.ShowDialogWithTitle(cassetteModifyViewModel, null, "FMIS2 Wafer");
  35. break;
  36. case "Boat":
  37. BoatModifyViewModel boatModifyViewModel = new BoatModifyViewModel(ModuleName.PM1.ToString());
  38. (windowManager as WindowManager)?.ShowDialogWithTitle(boatModifyViewModel, null, "Boat Wafer");
  39. break;
  40. case "Stock":
  41. StockerModifyViewModel stockerSelectViewModel = new StockerModifyViewModel();
  42. (windowManager as WindowManager)?.ShowDialogWithTitle(stockerSelectViewModel, null, "Select Stocker");
  43. break;
  44. }
  45. }
  46. public void CloseCmd()
  47. {
  48. ((Window)GetView()).Close();
  49. }
  50. }
  51. }