using System; using System.Windows.Forms; using System.Threading; using System.Globalization; using Uninpho.DBOperation; using Uninpho.DBOperation.Operation; using DevExpress.LookAndFeel; namespace Uninpho.Tools { static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Thread.CurrentThread.CurrentUICulture = new CultureInfo("zh-CN"); DevExpress.UserSkins.OfficeSkins.Register(); DevExpress.Skins.SkinManager.EnableFormSkins(); UserLookAndFeel.Default.SkinName = "Office 2010 Blue"; //应用程序域下未处理的错误 AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); Application.Run(new DevFrmMain()); } private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { Console.WriteLine(e.ExceptionObject.ToString()); MessageBox.Show(e.ExceptionObject.ToString()); } } }