duheng
2024-08-21 6c88a90d2330a27c0052a22538f6ebd6200faae7
Desktop/HStation.Desktop.Xhs.Core/Program.cs
@@ -1,8 +1,6 @@
using DevExpress.LookAndFeel;
using Mapster;
using System.IO;
using System.Reflection;
using Yw;
namespace HStation.Desktop
{
@@ -12,7 +10,7 @@
        ///  The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        private static void Main()
        {
            using (var mutex = new System.Threading.Mutex(true, Application.ProductName, out bool createNew))
            {
@@ -41,10 +39,10 @@
                Application.SetCompatibleTextRenderingDefault(false);
                //字体
                // var font = new System.Drawing.Font("微软雅黑", 10);
                // DevExpress.XtraEditors.WindowsFormsSettings.DefaultFont = font;
                // DevExpress.XtraEditors.WindowsFormsSettings.DefaultMenuFont = font;
                // DevExpress.Utils.AppearanceObject.DefaultFont = font;
                var font = new System.Drawing.Font("微软雅黑", 10);
                DevExpress.XtraEditors.WindowsFormsSettings.DefaultFont = font;
                DevExpress.XtraEditors.WindowsFormsSettings.DefaultMenuFont = font;
                DevExpress.Utils.AppearanceObject.DefaultFont = font;
                //zh-Hans界面翻译
                System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-Hans");
@@ -63,7 +61,9 @@
                //    return;
                //}
                Yw.FileFolderZipHelper.Zip(@"C:\Users\admin\Desktop\居家办公工作\简单用例", @"C:\Users\admin\Desktop\居家办公工作\简单用例.ywrvt");
                // Yw.FileFolderZipHelper.Zip(@"C:\Users\ZKC\Desktop\循环水用例", @"C:\Users\ZKC\Desktop\循环水用例.ywrvt");
                //Yw.FileFolderZipHelper.Zip(@"C:\Users\Eventech\Desktop\循环水用例", @"C:\Users\Eventech\Desktop\循环水用例.ywrvt");
                Yw.FileFolderZipHelper.Zip(@"C:\Users\admin\Desktop\居家办公工作\循环水用例", @"C:\Users\admin\Desktop\居家办公工作\循环水用例.ywrvt");
                //var json = RevitTestHelper.GenerateJson();
@@ -83,10 +83,7 @@
                DbFirstHelper.Initial();
                Application.Run(new MainForm());
            }
        }
        ///<summary>
        ///  这就是我们要在发生未处理异常时处理的方法,我这是写出错详细信息到文本,如出错后弹出一个漂亮的出错提示窗体,给大家做个参考
@@ -108,6 +105,5 @@
            Yw.LogHelper.Error("系统出现未知异常,ERROR:255", ex);
            MessageBox.Show($"系统出现未知异常,请重启系统!\r\n{ex.Message}");
        }
    }
}