예제 #1
0
        public void START_TP_withCaution()
        {
            INIT_TelepresenceConfigAndPrepareGui();


            TelepresenceSystem.LOG("Starting EyeOut telepresence\nby Daniel Davídek 2015");
            if (cbSafe_Warning.IsChecked == true)
            {
                if (MessageBox.Show("I hereby confirm?\n" +
                                    "[x] There is enaugh free space around the servomotor-arm!\n" +
                                    "[x] No-one is standing in the dangerous distance!",
                                    "Safety warning!", MessageBoxButton.YesNo, MessageBoxImage.Warning) != MessageBoxResult.Yes)
                {
                    TelepresenceSystem.LOG("Starting canceled.");
                    tbtToggleTP.IsChecked = false;
                    return;
                }
                else
                {
                    START_TP(TP_config);
                }
            }
            else
            {
                START_TP(TP_config);
            }
        }
예제 #2
0
 public void START_TP(TelepresenceSystemConfiguration TP_config)
 {
     using (TP_program = new TelepresenceSystem(TP_config))
     {
         TP_program.Run();
         END_TPsettings();
     }
 }
예제 #3
0
 public void STOP_TP()
 {
     if (TP_program != null)
     {
         if (TP_program.IsRunning)
         {
             TP_program.Exit();
             END_TPsettings();
             return;
         }
     }
     TelepresenceSystem.LOG_err("The Telepresence session is not running");
 }
예제 #4
0
 public void END_TPsettings()
 {
     System.Windows.Forms.Cursor.Show(); // not working
     TelepresenceSystem.LOG("The Telepresence session is stopped");
     tbtToggleTP.IsChecked = false;
 }