| | |
| | | using HStation.Vmo; |
| | | using System.Reflection; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | |
| | | /// <summary> |
| | | /// 初始化数据 |
| | | /// </summary> |
| | | public override async void InitialDataSource() |
| | | public override void InitialDataSource() |
| | | { |
| | | base.InitialDataSource(); |
| | | if (_project == null) |
| | |
| | | return; |
| | | } |
| | | this.PageTitle.Caption = $"{_project.Name}\r\n项目概况"; |
| | | this.xhsProjectSimulationProjectInfoCtrl1.SetBindingData(_project); |
| | | await this.xhsProjectSimulationBimfaceInfoCtrl1.SetBindingData(_project, _projectSite); |
| | | await this.xhsProjectSimulationHydroInfoCtrl1.SetBindingData(_project, _projectSite, _hydroInfo); |
| | | } |
| | | |
| | | private async void widgetView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e) |
| | | { |
| | | switch (e.Document.Tag) |
| | | { |
| | | case "project-info": |
| | | { |
| | | var ctrl = new XhsProjectSimulationProjectInfoCtrl(); |
| | | e.Control = ctrl; |
| | | ctrl.SetBindingData(_project); |
| | | } |
| | | break; |
| | | case "bimface-info": |
| | | { |
| | | var ctrl = new XhsProjectSimulationBimfaceInfoCtrl(); |
| | | e.Control = ctrl; |
| | | await ctrl.SetBindingData(_project, _projectSite); |
| | | } |
| | | break; |
| | | case "parter-list-info": |
| | | { |
| | | var ctrl = new XhsProjectSimulationHydroInfoCtrl(); |
| | | e.Control = ctrl; |
| | | await ctrl.SetBindingData(_project, _projectSite, _hydroInfo); |
| | | } |
| | | break; |
| | | default: break; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | } |