Ejemplo 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);
            }
        }
Ejemplo 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);
     }
 }