ningshuxia
2025-04-01 ef2ed31abaaec51c035c53d7596e788af4beb40a
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>
        ///  这就是我们要在发生未处理异常时处理的方法,我这是写出错详细信息到文本,如出错后弹出一个漂亮的出错提示窗体,给大家做个参考
@@ -135,5 +131,6 @@
        }
    }
}