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) { Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException); GlobalizationSettings.ApplyToCurrentThread(); using (App1 app = new App1()) { 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(); using (SurfaceApp app = new App()) { app.Run(); } }
public static void Start(InputProvider inputProvider) { // Disable the WinForms unhandled exception dialog. // SurfaceShell will notify the user. Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException); // Apply Surface globalization settings GlobalizationSettings.ApplyToCurrentThread(); using (app = new App1(inputProvider)) { app.Run(); } }
public GlobalizationManager(GlobalizationSettings settings, HttpContext httpContext) { this.Settings = settings ?? GlobalizationSettings.Settings; this.HttpContext = httpContext; }
public GlobalizationManager(GlobalizationSettings settings, HttpContext httpContext) { this.Settings = settings ?? GlobalizationSettings.Settings; this.HttpContext = httpContext; }