Esempio n. 1
0
 void asyncWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     OpenVibeController.OpenVibeDesignerWorkingFolder = this.textBoxOpenVibeWorkingFolder.Text;
     OpenVibeController.Scenario = this.textBoxScenario.Text;
     if (rButtonRealtime.Checked)
     {
         OpenVibeController.Scenario = OpenVibeController.Scenario.Substring(0, OpenVibeController.Scenario.Length - 4) + "-realtime.xml";
     }
     OpenVibeController.FastPlay = false;
     OpenVibeController.NoGUI    = true;
     OpenVibeController.Start(true);
 }
Esempio n. 2
0
        private void buttonEditScenario_Click(object sender, EventArgs e)
        {
            if (OpenVibeController.IsRunning)
            {
                if (MessageBox.Show("Only one instance of OpenVibe can run at the same time. Do you wish to continue?", "Confirm edit", MessageBoxButtons.YesNo) == DialogResult.No)
                {
                    return;
                }
            }

            OpenVibeController.OpenVibeDesignerWorkingFolder = this.textBoxOpenVibeWorkingFolder.Text;
            OpenVibeController.Scenario = this.textBoxScenario.Text;
            OpenVibeController.NoGUI    = false;
            OpenVibeController.Start(false);
        }