| | |
| | | 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控件 |
| | |
| | | private SimulationPropertyCtrl _propertyCtrl = null; |
| | | |
| | | //获取属性控件 |
| | | private SimulationPropertyCtrl GetPropertyCtrl() |
| | | private async Task<SimulationPropertyCtrl> GetPropertyCtrl() |
| | | { |
| | | if (_hydroInfo == null) |
| | | { |
| | |
| | | } |
| | | 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) => |
| | | { |
| | |
| | | } |
| | | |
| | | //显示属性控件 |
| | | 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; |
| | |
| | | _propertyCtrl?.UpdateRows(); |
| | | } |
| | | |
| | | #endregion 属性控件 |
| | | #endregion |
| | | |
| | | #region 选择构件 |
| | | |