public RobotContext() { _data = new RobotData(); _controller = new RobotController(_data); _data.PropertyChanged += _data_PropertyChanged; }
public RobotController(RobotData data) { _data = data; _brick = new Brick(new BluetoothCommunication()); _brick.BrickChanged += _brick_BrickChanged; }