internal WarehouseRobotController(WarehouseRobot robot) { this.robot = robot; this.robot.Engine.VelocityChanged += OnEngineVelocityChanged; this.robot.Engine.PositionChanged += OnEnginePositionChanged; }
internal WarehouseRobotEngine(WarehouseRobot robot) : base() { Robot = robot; DriveX = new RobotDimensionalDrive(Dimension.X); DriveY = new RobotDimensionalDrive(Dimension.Y); Drives.Add(DriveX); Drives.Add(DriveY); engineTaskControllingEvent = new ManualResetEvent(false); }
internal WarehouseRobotControlPanelView(WarehouseRobot robot) { InitializeComponent(); warehouseRobotControlPanelViewModel = new WarehouseRobotControlPanelViewModel(this, robot); Closing += OnClosing; DataContext = warehouseRobotControlPanelViewModel; Uri iconUri = new Uri("pack://application:,,,/Images/control.jpg", UriKind.RelativeOrAbsolute); Icon = BitmapFrame.Create(iconUri); }