static void Main() { try { if (AutoUpdate.CheckAndUpdate()) { Environment.Exit(0); } } catch (Exception e) { MessageBox.Show(e.Data + " 网络异常~~~赶紧检查一下吧……"); Environment.Exit(Environment.ExitCode); } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Main()); }