public JoystickViewModel(DeviceViewModel deviceViewModel, IMoCoBusProtocolService protocolService)
        {
            _deviceViewModel = deviceViewModel;
            _protocolService = protocolService;

            StartJoystickCommand = new ReactiveCommand<Point>();
            StartJoystickCommand.Subscribe(StartJoystick);
            StopJoystickCommand = new ReactiveCommand();
            StopJoystickCommand.Subscribe(StopJoystick);
            MoveJoystickCommand = new ReactiveCommand<Point>();
            MoveJoystickCommand.Sample(TimeSpan.FromMilliseconds(60)).Throttle(TimeSpan.FromMilliseconds(50)).Subscribe(MoveJoystick);

            StartSliderCommand = new ReactiveCommand<float>();
            StartSliderCommand.Subscribe(StartSlider);
            StopSliderCommand = new ReactiveCommand();
            StopSliderCommand.Subscribe(StopSlider);
            MoveSliderCommand = new ReactiveCommand<float>();
            MoveSliderCommand.Sample(TimeSpan.FromMilliseconds(60)).Throttle(TimeSpan.FromMilliseconds(50)).Subscribe(MoveSlider);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.DeviceView);

            App.Initialize(this);

            Vm = GlobalNavigation.GetAndRemoveParameter<DeviceViewModel>(Intent);

            Vm.PropertyChanged += (s, e) => {};
            ConnectSwitch.CheckedChange += (s, e) => {};

            SetModeSmsButton.Click += (o, e) => {};
            SetModeSmsButton.SetCommand("Click", Vm.SetModeSmsCommand);
            SetModePanoButton.Click += (o, e) => {};
            SetModePanoButton.SetCommand("Click", Vm.SetModePanoCommand);
            SetModeAstroButton.Click += (o, e) => {};
            SetModeAstroButton.SetCommand("Click", Vm.SetModeAstroCommand);
        }
 public ModeAstroViewModel(IDispatcherHelper dispatcherHelper, DeviceViewModel deviceViewModel, IMoCoBusProtocolService protocolService)
 {
     _dispatcherHelper = dispatcherHelper;
     _deviceViewModel = deviceViewModel;
     _protocolService = protocolService;
 }