static void Main(string[] args) { string lgsStartupDir = setupAppDataInstall(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { var applicationContext = new GPIIApplicationContext(new string[] { lgsStartupDir, "node.exe", "lgs_driver.js" }); Application.Run(applicationContext); } catch (Exception ex) { MessageBox.Show(ex.Message, "Program Terminated Unexpectedly", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
static void Main(string[] args) { string lgsStartupDir = setupAppDataInstall(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { var applicationContext = new GPIIApplicationContext(new string[] {lgsStartupDir, "node.exe", "lgs_driver.js"}); Application.Run(applicationContext); } catch (Exception ex) { MessageBox.Show(ex.Message, "Program Terminated Unexpectedly", MessageBoxButtons.OK, MessageBoxIcon.Error); } }