| | |
| | | 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> |
| | |
| | | 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. |
| | |
| | | |
| | | //try |
| | | //{ |
| | | |
| | | // if (AutoUpdateHelper.NeedExist()) |
| | | // return; |
| | | //} |
| | |
| | | // 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> |
| | | /// 这就是我们要在发生未处理异常时处理的方法,我这是写出错详细信息到文本,如出错后弹出一个漂亮的出错提示窗体,给大家做个参考 |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |