12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 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
- {
- /// <summary>
- /// 应用程序的主入口点。
- /// </summary>
- [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());
- }
- }
- }
|