| | |
| | | this.PageTitle.SvgImageSize = new Size(24, 24); |
| | | this.simulationFunctionMgrCtrl1.ShowProjectSiteInfoEvent += SimulationFunctionMgrCtrl1_ShowProjectSiteInfoEvent; |
| | | this.simulationFunctionMgrCtrl1.ShowProjectSiteSimulationEvent += SimulationFunctionMgrCtrl1_ShowProjectSiteSimulationEvent; |
| | | this.simulationFunctionMgrCtrl1.ShowProjectSiteWorkingEvent += SimulationFunctionMgrCtrl1_ShowProjectSiteWorkingEvent; |
| | | this.simulationFunctionMgrCtrl1.ProjectSiteWorkingAppendEvent += SimulationFunctionMgrCtrl1_ProjectSiteWorkingAppendEvent; |
| | | this.simulationFunctionMgrCtrl1.ProjectSiteWorkingUpdateEvent += SimulationFunctionMgrCtrl1_ProjectSiteWorkingUpdateEvent; |
| | | this.simulationFunctionMgrCtrl1.ProjectSiteWorkingRemoveEvent += SimulationFunctionMgrCtrl1_ProjectSiteWorkingRemoveEvent; |
| | |
| | | } |
| | | } |
| | | |
| | | //显示项目站工况事件 |
| | | private void SimulationFunctionMgrCtrl1_ShowProjectSiteWorkingEvent |
| | | ( |
| | | XhsProjectVmo project, |
| | | XhsProjectSiteVmo projectSite, |
| | | XhsSchemeVmo scheme, |
| | | Yw.Model.HydroModelInfo hydroInfo, |
| | | HydroWorkingVmo working, |
| | | SvgImage svgImage |
| | | ) |
| | | { |
| | | lock (_locker) |
| | | { |
| | | var guid = new PageGuid() |
| | | { |
| | | Modular = this.PageGuid.Modular, |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = SimulationFunctionHelper.Working, |
| | | TagName = $"{project.ID}-{projectSite.ID}-{scheme?.ID}-{working.ID}" |
| | | }; |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | | var page = new XhsProjectSimulationWorkingPage(); |
| | | page.UpdateWorkingEvent += (rhs) => |
| | | { |
| | | this.simulationFunctionMgrCtrl1.UpdateWorking(scheme, rhs); |
| | | }; |
| | | page.RemoveWorkingEvent += (rhs) => |
| | | { |
| | | this.simulationFunctionMgrCtrl1.RemoveWorking(scheme, rhs); |
| | | }; |
| | | page.PageTitle.HeaderSvgImage = svgImage; |
| | | page.SetBindingData(project, projectSite, scheme, hydroInfo, working); |
| | | CreatePage(page, guid); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 项目站工况增加事件 |
| | | /// </summary> |
| | |
| | | Modular = this.PageGuid.Modular, |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = SimulationFunctionHelper.Simulation, |
| | | TagName = projectSite.ID.ToString() |
| | | TagName = $"{project.ID}-{projectSite.ID}-{scheme?.ID}" |
| | | }; |
| | | var page = FindPage(guid); |
| | | if (page == null) |
| | |
| | | XhsProjectVmo project, |
| | | XhsProjectSiteVmo projectSite, |
| | | Yw.Model.HydroModelInfo hydroInfo, |
| | | List<XhsSchemeVmo> allSchemeList, |
| | | SvgImage svgImage |
| | | ) |
| | | { |
| | | //WaitFormHelper.ShowWaitForm(this.FindForm(), "正在加载模型,请稍侯..."); |
| | | //var dlg = new AddXhsSchemeDlg(); |
| | | //dlg.Shown += delegate { WaitFormHelper.HideWaitForm(this.FindForm()); }; |
| | | //dlg.ReloadDataEvent += (rhs) => |
| | | //{ |
| | | // this.simulationFunctionMgrCtrl1.AppendScheme(rhs); |
| | | //}; |
| | | //dlg.SetBindingData(project, projectSite, hydroInfo); |
| | | //dlg.ShowDialog(); |
| | | |
| | | WaitFormHelper.ShowWaitForm(this.FindForm(), "正在加载,请稍侯..."); |
| | | var dlg = new CreateXhsSchemeDlg(); |
| | | dlg.Shown += delegate { WaitFormHelper.HideWaitForm(this.FindForm()); }; |
| | | dlg.SetBindingData(project, projectSite, hydroInfo); |
| | | dlg.SetBindingData(project, projectSite, hydroInfo, allSchemeList); |
| | | dlg.ReloadDataEvent += (rhs) => |
| | | { |
| | | this.simulationFunctionMgrCtrl1.AppendScheme(rhs); |
| | | }; |
| | | dlg.ShowDialog(); |
| | | } |
| | | |