static void Main(string[] args) { // Disable the WinForms unhandled exception dialog. // SurfaceShell will notify the user. Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException); // Apply Surface globalization settings GlobalizationSettings.ApplyToCurrentThread(); string ip = ""; if (args.Length >= 1) { ip = args[0]; } else { Console.WriteLine("Usage : PA.exe serverIpAddress"); } using (App1 app = new App1(ip)) { app.Run(); } }
static void Main(string[] args) { // Disable the WinForms unhandled exception dialog. // SurfaceShell will notify the user. Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException); // Apply Surface globalization settings GlobalizationSettings.ApplyToCurrentThread(); string ip = ""; if (args.Length >= 1) ip = args[0]; else Console.WriteLine("Usage : PA.exe serverIpAddress"); using (App1 app = new App1(ip)) { app.Run(); } }