public Form1() { body = new Core(); InitializeComponent(); sensor = body.GetSensor(); Process p = new Process(); p.StartInfo.WorkingDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); p.StartInfo.FileName = "ColorBasics-WPF.exe"; p.Start(); Thread.Sleep(600); // Allow the process to open it's window SetParent(p.MainWindowHandle, panel1.Handle); input.speak("Welcome to Fit Pro 3D. Please choose an exercise below, and click start to begin."); }
public static void Main() { Core c = new Core(); while (run) ; }