12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using Caliburn.Micro;
- using Caliburn.Micro.Core;
- using MECF.Framework.Common.Equipment;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using FurnaceUI.Models;
- namespace FurnaceUI.Views.Operations
- {
- public class SelfCheckModifyViewModel : FurnaceUIViewModelBase
- {
- public void ModifyCmd(string module)
- {
- var windowManager = IoC.Get<IWindowManager>();
- switch (module)
- {
- case "CassetteRobot":
- CassetteModifyViewModel cassetteModifyViewModel = new CassetteModifyViewModel(ModuleName.CarrierRobot.ToString());
- (windowManager as WindowManager)?.ShowDialogWithTitle(cassetteModifyViewModel, null, "CarrierRobot Wafer");
- break;
- case "WaferRobot":
- WaferRobotModifyViewModel waferRobotModifyViewModel = new WaferRobotModifyViewModel(ModuleName.WaferRobot.ToString());
- (windowManager as WindowManager)?.ShowDialogWithTitle(waferRobotModifyViewModel, null, "WaferRobot Wafer");
- break;
- case "FMIS1":
- cassetteModifyViewModel = new CassetteModifyViewModel(ModuleName.FIMS1.ToString());
- (windowManager as WindowManager)?.ShowDialogWithTitle(cassetteModifyViewModel, null, "FMIS1 Wafer");
- break;
- case "FMIS2":
- cassetteModifyViewModel = new CassetteModifyViewModel(ModuleName.FIMS2.ToString());
- (windowManager as WindowManager)?.ShowDialogWithTitle(cassetteModifyViewModel, null, "FMIS2 Wafer");
- break;
- case "Boat":
- BoatModifyViewModel boatModifyViewModel = new BoatModifyViewModel(ModuleName.PM1.ToString());
- (windowManager as WindowManager)?.ShowDialogWithTitle(boatModifyViewModel, null, "Boat Wafer");
- break;
- case "Stock":
- StockerModifyViewModel stockerSelectViewModel = new StockerModifyViewModel();
- (windowManager as WindowManager)?.ShowDialogWithTitle(stockerSelectViewModel, null, "Select Stocker");
- break;
- }
- }
- public void CloseCmd()
- {
- ((Window)GetView()).Close();
- }
- }
- }
|