Beispiel #1
0
 public void DoCreate()
 {
     if (NewMotionController != null)
     {
         MotionControllerViewModel mcvw;
         if (NewMotionController.ConnectStatus != PSMoveConnectStatus.Unknown)
         {
             mcvw = new MotionControllerViewModel(
                 NewMotionController, 
                 new MotionControllerService());
             
         }
         else
         {
             mcvw = new MotionControllerViewModel();
         }
         IsOpen = false;
     }
 }
        public void DoCreate()
        {
            if (NewMotionController != null)
            {
                MotionControllerViewModel mcvw;
                if (NewMotionController.ConnectStatus != PSMoveConnectStatus.Unknown)
                {
                    mcvw = new MotionControllerViewModel(
                        NewMotionController,
                        new MotionControllerService());

                }
                else
                {
                    mcvw = new MotionControllerViewModel();
                }
                IsOpen = false;
            }
        }
 void MotionControllerView_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     _viewModel = (MotionControllerViewModel)DataContext;
     CalibrationMagnetometerButton.Command = ShowMagnetometerCalibrationDialogCommand;
 }