public static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string message = ""; if (!VersionVerification.VerifyDotNet(out message, VersionVerification.DotNetV4_5)) { System.Windows.Forms.MessageBox.Show(message, ".NET"); Application.Exit(); return; } try { Handle = new WebServerHandle(); Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US"); Handle.Run(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string message = ""; if (!VersionVerification.VerifyDotNet(out message, VersionVerification.DotNetV4_5)) { System.Windows.Forms.MessageBox.Show(message, ".NET"); Application.Exit(); return; } try { Handle = new WebServerHandle(); Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US"); Handle.Run(); } catch(Exception ex) { MessageBox.Show(ex.Message); } }