lixiaojun
2025-01-06 80ec78f9c85466b09ac4a4101d5073c26f37021e
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs
@@ -223,6 +223,24 @@
            this.barBtnSetCompressorList.ImageOptions.AllowGlyphSkinning = DevExpress.Utils.DefaultBoolean.True;
        }
        #region 属性状态
        //属性状态辅助类
        private HydroPropStatusHelper _propStatusHelper = null;
        //获取属性状态辅助类
        private async Task<HydroPropStatusHelper> GetPropStatusHelper()
        {
            if (_propStatusHelper == null)
            {
                var allPropStatusList = await BLLFactory<Yw.BLL.HydroParterPropStatusInfo>.Instance.GetByModelID(_hydroInfo.ID);
                _propStatusHelper = new HydroPropStatusHelper(_hydroInfo, allPropStatusList);
            }
            return _propStatusHelper;
        }
        #endregion
        #region BIM控件
        //bimface控件
@@ -310,7 +328,7 @@
        private SimulationPropertyCtrl _propertyCtrl = null;
        //获取属性控件
        private SimulationPropertyCtrl GetPropertyCtrl()
        private async Task<SimulationPropertyCtrl> GetPropertyCtrl()
        {
            if (_hydroInfo == null)
            {
@@ -318,9 +336,11 @@
            }
            if (_propertyCtrl == null)
            {
                var propStatusHelper = await GetPropStatusHelper();
                _propertyCtrl = new SimulationPropertyCtrl();
                _propertyCtrl.Dock = DockStyle.Fill;
                _propertyCtrl.AllowEdit = true;
                _propertyCtrl.InitialData(propStatusHelper);
                _propertyCtrl.CalcuResult = () => GetCalcuResult();
                _propertyCtrl.HydroViewEvent += (visual) =>
                {
@@ -418,13 +438,13 @@
        }
        //显示属性控件
        private void ShowPropertyCtrl()
        private async void ShowPropertyCtrl()
        {
            if (IsPropertyCtrlVisible)
            {
                return;
            }
            var propertyCtrl = GetPropertyCtrl();
            var propertyCtrl = await GetPropertyCtrl();
            this.controlContainerRight.Controls.Clear();
            this.controlContainerRight.Controls.Add(propertyCtrl);
            this.docPnlRight.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Visible;
@@ -448,7 +468,7 @@
            _propertyCtrl?.UpdateRows();
        }
        #endregion 属性控件
        #endregion
        #region 选择构件