public ControlViewModel(ModelContainer modelContainer) { Position = new MovementInfoClass(); this.modelContainer = modelContainer; CameraViewModel = new CameraStreamViewModel(); HUDViewModel = new HUDViewModel(); DetectionListViewModel = new DetectionListViewModel(modelContainer); DetectionDrawerViewModel = new DetectionDrawerViewModel(modelContainer); ModeChangedCommand = new RelayCommand(ModeChangedAction, CanArmAction); ArmCommand = new RelayCommand(ArmAction, CanArmAction); DisarmCommand = new RelayCommand(DisarmAction, CanDisarmAction); DetectionBtnClickedCommand = new RelayCommand(DetectionBtnClickedAction, (object p) => { return(true); }); modelContainer.modelStatus.ArmCallback += (bool value) => { Armed = value; }; modelContainer.modelStatus.networkStatus.ConnectedToJetsonCallback += (bool value) => { JetsonConnected = value; }; modelContainer.modelStatus.networkStatus.CameraStreamConnectedCallback += CameraStreamStatusChangedCallback; modelContainer.modelStatus.DetectorStatusCallback += (bool val) => { DetectionState = val; }; }
public void Construct(HUDViewModel HUD) { _HUD = HUD; }
public When_an_item_is_copied_in_game_and_the_hud_is_open() { _hudViewModel = new HUDViewModel(Quartermaster); _hudViewModel.MonitorEvents(); }
private void UpdateAttitude(float x, float y, float z) { HUDViewModel.UpdateAttitude(x, y, z); }