public void Initialize() { RobotManagementServiceRegister = new RobotManagementService(); DoorManagementServiceRegister = new DoorManagementService(); ProcedureManagementServiceRegister = new ProcedureManagementService(); TrafficManagementServiceRegister = new TrafficManagementService(); }
public void Initialize() { robotManagementService = new RobotManagementService(this.mainWindow.map); doorManagementService = new DoorManagementService(); DataReceive status = new DataReceive(); // Test door /// doorManagementService.DoorMezzamineUpNew.LampSetStateOn(DoorType.DOOR_FRONT); //while (true) //{ // doorManagementService.DoorMezzamineUpNew.LampOn(DoorType.DOOR_FRONT); // doorManagementService.DoorMezzamineUpNew.LampOff(DoorType.DOOR_FRONT); // doorManagementService.DoorMezzamineUpNew.OpenPress(DoorType.DOOR_FRONT); // doorManagementService.DoorMezzamineUpNew.GetStatus(ref status, DoorType.DOOR_FRONT); // doorManagementService.DoorMezzamineUpNew.ClosePress(DoorType.DOOR_FRONT); // doorManagementService.DoorMezzamineUpNew.GetStatus(ref status, DoorType.DOOR_FRONT); // doorManagementService.DoorMezzamineUpNew.OpenPress(DoorType.DOOR_BACK); // doorManagementService.DoorMezzamineUpNew.GetStatus(ref status, DoorType.DOOR_BACK); // doorManagementService.DoorMezzamineUpNew.ClosePress(DoorType.DOOR_BACK); // doorManagementService.DoorMezzamineUpNew.GetStatus(ref status, DoorType.DOOR_BACK); //} // End procedureManagementService = new ProcedureManagementService(); chargerService = new ChargerManagementService(); trafficService = new TrafficManagementService(); deviceRegistrationService = new DeviceRegistrationService(12000); Global_Object.doorManagementServiceCtrl = doorManagementService; assigmentTaskService = new AssigmentTaskService(); assigmentTaskService.RegistryService(robotManagementService); assigmentTaskService.RegistryService(procedureManagementService); assigmentTaskService.RegistryService(deviceRegistrationService.GetDeviceItemList()); assigmentTaskService.RegistryService(trafficService); procedureManagementService.RegistryService(trafficService); procedureManagementService.RegistryService(robotManagementService); procedureManagementService.RegistryService(doorManagementService); procedureManagementService.RegistryService(chargerService); procedureManagementService.RegistryService(deviceRegistrationService); procedureManagementService.RegistryService(assigmentTaskService); robotManagementService.Registry(trafficService); // robotManagementService.TestRobotProceure(); robotManagementService.Initialize(); //robotManagementService.robot2test(); deviceRegistrationService.listen(); deviceRegistrationService.RegistryMainWindow(this.mainWindow); //assigmentTaskService.Start(); MessageBox.Show("Bấm Start Để Bắt Đầu !"); RobotMoving robotMoving = new RobotMoving(robotManagementService.RobotUnityRegistedList); robotMoving.Show(); //assigmentTaskService.Start(); }
public ConfigureRobotUnity(RobotManagementService robotManagementService, string cultureName = null) { try { InitializeComponent(); ApplyLanguage(cultureName); this.robotManagementService = robotManagementService; DataContext = robotManagementService; } catch { } }
public void RegistryService(RobotManagementService robotManagementService) { this.robotManagementService = robotManagementService; }
public void Registry(RobotManagementService robotService) { this.robotService = robotService; this.RobotList = new List <RobotUnity>(this.robotService.RobotUnityRegistedList.Values); }
public CtrlRobot(RobotManagementService rms) { InitializeComponent(); this.rms = rms; txtBat.Text = "5"; }