| | |
| | | //初始化文件格式 |
| | | private void InitialSchemeType() |
| | | { |
| | | this.imgCmbSchemeType.Properties.BeginUpdate(); |
| | | this.imgCmbSchemeType.Properties.Items.Clear(); |
| | | this.imgCmbSchemeType.Properties.Items.AddEnum(typeof(HStation.Xhs.eSchemeType), false); |
| | | this.imgCmbSchemeType.EditValue = eSchemeType.Common; |
| | | this.imgCmbSchemeType.Properties.EndUpdate(); |
| | | //this.imgCmbSchemeType.Properties.BeginUpdate(); |
| | | //this.imgCmbSchemeType.Properties.Items.Clear(); |
| | | //this.imgCmbSchemeType.Properties.Items.AddEnum(typeof(HStation.Xhs.eSchemeType), false); |
| | | //this.imgCmbSchemeType.EditValue = eSchemeType.Common; |
| | | //this.imgCmbSchemeType.Properties.EndUpdate(); |
| | | } |
| | | //初始化标签 |
| | | private async Task InitialFlags() |
| | |
| | | #region Bimface |
| | | |
| | | //bimface控件 |
| | | private XhsProjectSimulationBimfaceCtrl _bimfaceCtrl = null; |
| | | private SimulationBimfaceCtrl _bimfaceCtrl = null; |
| | | |
| | | //获取 bimface 控件 |
| | | private async Task<XhsProjectSimulationBimfaceCtrl> GetBimfaceCtrl() |
| | | private async Task<SimulationBimfaceCtrl> GetBimfaceCtrl() |
| | | { |
| | | if (_bimfaceCtrl == null) |
| | | { |
| | | _bimfaceCtrl = new XhsProjectSimulationBimfaceCtrl(); |
| | | _bimfaceCtrl = new SimulationBimfaceCtrl(); |
| | | _bimfaceCtrl.Dock = DockStyle.Fill; |
| | | await _bimfaceCtrl.InitialData(_project, _project_site); |
| | | _bimfaceCtrl.LoadCompletedEvent += () => |
| | |
| | | xhs_scheme.SiteID = _project_site.ID; |
| | | xhs_scheme.NO = this.txtNo.Text.Trim(); |
| | | xhs_scheme.Name = this.txtName.Text.Trim(); |
| | | xhs_scheme.SchemeType = eSchemeType.Common; |
| | | //xhs_scheme.SchemeType = eSchemeType.Common; |
| | | xhs_scheme.Paras = null; |
| | | xhs_scheme.Flags = null; |
| | | xhs_scheme.UseStatus = Yw.Model.eUseStatus.Enable; |