public void Run()
 {
     Logger.Info("Start");
     shellViewModel.Show();
     ThreadPool.QueueUserWorkItem((info) =>
     {
         networkAccessThreadController.TryConnect();
     });
     guiUpdateService.StartGuiUpdate();
 }
Exemple #2
0
        private void TabChange_Command(object param)
        {
            guiUpdateService.StopGuiUpdate();
            Thread.Sleep(50);
            int tabnum = int.Parse((string)param);

            switch (tabnum)
            {
            case 0:
                navigationMonitoringViewModel.NavCoorVis     = true;
                navigationMonitoringViewModel.NavVelVis      = false;
                navigationMonitoringViewModel.NavTrackingVis = false;
                break;

            case 1:
                navigationMonitoringViewModel.NavCoorVis     = false;
                navigationMonitoringViewModel.NavVelVis      = true;
                navigationMonitoringViewModel.NavTrackingVis = false;
                break;

            case 2:
                navigationMonitoringViewModel.NavCoorVis     = false;
                navigationMonitoringViewModel.NavVelVis      = false;
                navigationMonitoringViewModel.NavTrackingVis = true;
                break;

            default:
                break;
            }
            Thread.Sleep(50);
            guiUpdateService.StartGuiUpdate();
        }
Exemple #3
0
        private void TabChange_Command(object param)
        {
            guiUpdateService.StopGuiUpdate();
            Thread.Sleep(50);
            int tabnum = int.Parse((string)param);

            switch (tabnum)
            {
            case 0:
                attitudeMonitoringViewModel.RotVis   = true;
                attitudeMonitoringViewModel.VelVis   = false;
                attitudeMonitoringViewModel.MotorVis = false;
                break;

            case 1:
                attitudeMonitoringViewModel.RotVis   = false;
                attitudeMonitoringViewModel.VelVis   = true;
                attitudeMonitoringViewModel.MotorVis = false;
                break;

            case 2:
                attitudeMonitoringViewModel.RotVis   = false;
                attitudeMonitoringViewModel.VelVis   = false;
                attitudeMonitoringViewModel.MotorVis = true;
                break;

            default:
                break;
            }
            Thread.Sleep(50);
            guiUpdateService.StartGuiUpdate();
        }