Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 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);
     }
 }