| | |
| | | set { this.hydroVisualPropertyCtrl1.SelectedObject = value; } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 计算结果 |
| | | /// </summary> |
| | | public Func<HydroCalcuResult> CalcuResult { get; set; } |
| | | |
| | | #endregion 属性赋值 |
| | | |
| | | #region 属性更新 |
| | |
| | | { |
| | | var bluntheadViewModel = vm as HydroBluntheadViewModel; |
| | | var input = HydroMatchingHelper.Create(bluntheadViewModel); |
| | | var dlg = new SimulationBluntheadSingleMatchingDlg(); |
| | | var dlg = new AssetsBluntheadSingleMatchingDlg(); |
| | | dlg.ReloadDataEvent += (output) => |
| | | { |
| | | HydroMatchingHelper.Apply(bluntheadViewModel, output); |
| | |
| | | { |
| | | var threelinkViewModel = vm as HydroThreelinkViewModel; |
| | | var input = HydroMatchingHelper.Create(threelinkViewModel); |
| | | var dlg = new SimulationThreelinkSingleMatchingDlg(); |
| | | var dlg = new AssetsThreelinkSingleMatchingDlg(); |
| | | dlg.ReloadDataEvent += (output) => |
| | | { |
| | | HydroMatchingHelper.Apply(threelinkViewModel, output); |
| | |
| | | { |
| | | var fourlinkViewModel = vm as HydroFourlinkViewModel; |
| | | var input = HydroMatchingHelper.Create(fourlinkViewModel); |
| | | var dlg = new SimulationFourlinkSingleMatchingDlg(); |
| | | var dlg = new AssetsFourlinkSingleMatchingDlg(); |
| | | dlg.ReloadDataEvent += (output) => |
| | | { |
| | | HydroMatchingHelper.Apply(fourlinkViewModel, output); |
| | |
| | | { |
| | | var nozzleViewModel = vm as HydroNozzleViewModel; |
| | | var input = HydroMatchingHelper.Create(nozzleViewModel); |
| | | var dlg = new SimulationSprinklerSingleMatchingDlg(); |
| | | var dlg = new AssetsSprinklerSingleMatchingDlg(); |
| | | dlg.ReloadDataEvent += (output) => |
| | | { |
| | | HydroMatchingHelper.Apply(nozzleViewModel, output); |
| | |
| | | { |
| | | var hydrantViewModel = vm as HydroHydrantViewModel; |
| | | var input = HydroMatchingHelper.Create(hydrantViewModel); |
| | | var dlg = new SimulationHydrantSingleMatchingDlg(); |
| | | var dlg = new AssetsHydrantSingleMatchingDlg(); |
| | | dlg.ReloadDataEvent += (output) => |
| | | { |
| | | HydroMatchingHelper.Apply(hydrantViewModel, output); |
| | |
| | | { |
| | | var pipeViewModel = vm as HydroPipeViewModel; |
| | | var input = HydroMatchingHelper.Create(pipeViewModel); |
| | | var dlg = new SimulationPipeSingleMatchingDlg(); |
| | | var dlg = new AssetsPipeSingleMatchingDlg(); |
| | | dlg.ReloadDataEvent += (output) => |
| | | { |
| | | HydroMatchingHelper.Apply(pipeViewModel, output); |
| | |
| | | pumpViewModel.UpdateProperty(); |
| | | this.hydroVisualPropertyCtrl1.UpdateRows(); |
| | | }; |
| | | dlg.SetBindingData(pumpViewModel); |
| | | dlg.SetBindingData(pumpViewModel, this.CalcuResult?.Invoke()); |
| | | dlg.ShowDialog(); |
| | | } |
| | | break; |