qin
2025-03-20 330002911a64ea58d6834b64228870228eb75391
Desktop/PBS.Desktop/Program.cs
@@ -1,12 +1,11 @@
using DevExpress.LookAndFeel;
using HStation.WinFrmUI;
using Mapster;
using System.Reflection;
namespace PBS.Desktop
{
    internal static class Program
    {
    {
        /// <summary>
        ///  The main entry point for the application.
        /// </summary>
@@ -50,7 +49,7 @@
                System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("zh-Hans");
                //皮肤
                 DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(SkinStyle.WXICompact);
                DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(SkinStyle.WXICompact);
                // To customize application configuration such as set high DPI settings or default font,
                // see https://aka.ms/applicationconfiguration.
@@ -61,7 +60,6 @@
                //try
                //{
                //    if (AutoUpdateHelper.NeedExist())
                //        return;
                //}
@@ -70,28 +68,26 @@
                //    LogHelper.Error("验证升级错误", ex);
                //}
                #endregion
                #endregion 验证升级
                if (!LoginHelper.Login())
                {
                    return;
                }
                //扫描全局DTO映射
                TypeAdapterConfig.GlobalSettings.Scan
                    (
                        //Assembly.Load("Yw.BLL.Auth.Core"),
                        //Assembly.Load("Yw.BLL.Bimface.Core"),
                        //Assembly.Load("Yw.BLL.Hydro.Core"),
                        //Assembly.Load("Yw.BLL.Map.Core"),
                        //Assembly.Load("HStation.BLL.Xhs.Core")
                    //Assembly.Load("Yw.BLL.Auth.Core"),
                    //Assembly.Load("Yw.BLL.Bimface.Core"),
                    //Assembly.Load("Yw.BLL.Hydro.Core"),
                    //Assembly.Load("Yw.BLL.Map.Core"),
                    //Assembly.Load("HStation.BLL.Xhs.Core")
                    );
                //DbFirstHelper.Initial();
                DbFirstHelper.Initial();
                Application.Run(new MainForm());
            }
        }
        ///<summary>
        ///  这就是我们要在发生未处理异常时处理的方法,我这是写出错详细信息到文本,如出错后弹出一个漂亮的出错提示窗体,给大家做个参考
@@ -133,7 +129,5 @@
                MessageBoxHelper.ShowError($"系统出现未知异常,请重启系统!\r\n{ex.Message}");
            }
        }
    }
}