tangxu
2024-02-28 f9acbc64359c08113ee6781adfe7cc683d0b5186
Desktop/IStation.Desktop.ChCalc/Program.cs
@@ -4,6 +4,7 @@
using IStation.DataProvider;
using IStation.Desktop.CurveMgr;
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace IStation
@@ -38,9 +39,9 @@
            System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);
            IStation.LogHelper.Initial();
           //字体
           var font = new System.Drawing.Font("微软雅黑", 10);
            //字体
            var font = new System.Drawing.Font("微软雅黑", 10);
            DevExpress.XtraEditors.WindowsFormsSettings.DefaultFont = font;
            DevExpress.XtraEditors.WindowsFormsSettings.DefaultMenuFont = font;
            DevExpress.Utils.AppearanceObject.DefaultFont = font;
@@ -66,7 +67,20 @@
                SettingsHelper.Save();
            }
            var frmMain = new frmMain();
            //
            List<Model.RiverWaterLevelDrop> allRiverWaterLevelDrop = BLL.RiverWaterLevelDrop.GetList();
            IStation.Calc.ErQu.GlobalParas.RiverWaterLevelDrops = allRiverWaterLevelDrop;
            List<Model.ReservoirParas> allReservoirParas = BLL.ReservoirParas.GetList();
            IStation.Calc.ErQu.GlobalParas.ReservoirParasList = allReservoirParas;
            var asT = BLL.AnaSetting.GetSetting();
            IStation.Calc.ErQu.GlobalParas.AnaSetting = asT;
          var frmMain = new frmMain();
            frmMain.Initial();
            Application.Run(frmMain);
        }