示例#1
0
 static void Main()
 {
     //Thread.CurrentThread.Name = "UI";
     H调试.初始化();
     H调试.清除过期调试文件("录像");
     H异常.提示不可恢复异常 = 显示不可恢复异常;
     H异常.提示可恢复异常  = 显示可恢复异常;
     H异常.自定义处理    = q => {
         if (q is InvalidOperationException || q is NullReferenceException || q is ArgumentNullException)
         {
             H调试.记录异常(q);
             return(true);
         }
         return(false);
     };
     SkinManager.EnableFormSkins();
     //DevExpress.UserSkins.BonusSkins.Register();
     DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("微软雅黑", 9F);
     UserLookAndFeel.Default.SetSkinStyle("Office 2013");
     //UserLookAndFeel.Default.SetSkinStyle("Metropolis");
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new F配置());
 }