| | |
| | | { |
| | | var exchangerViewModel = vm as HydroExchangerViewModel; |
| | | var input = HydroMatchingHelper.Create(exchangerViewModel); |
| | | var dlg = new SimulationExchangerSingleMatchingDlg(); |
| | | var dlg = new AssetsExchangerSingleMatchingDlg(); |
| | | dlg.ReloadDataEvent += (output) => |
| | | { |
| | | HydroMatchingHelper.Apply(exchangerViewModel, output); |
| | |
| | | { |
| | | var compressorViewModel = vm as HydroCompressorViewModel; |
| | | var input = HydroMatchingHelper.Create(compressorViewModel); |
| | | var dlg = new SimulationCompressorSingleMatchingDlg(); |
| | | var dlg = new AssetsCompressorSingleMatchingDlg(); |
| | | dlg.ReloadDataEvent += (output) => |
| | | { |
| | | HydroMatchingHelper.Apply(compressorViewModel, output); |
| | |
| | | if (long.TryParse(vm.DbId, out long longDbId)) |
| | | { |
| | | var exchangerViewModel = vm as HydroExchangerViewModel; |
| | | var dlg = new ExchangerChartShowDlg(); |
| | | dlg.SetBingingData(longDbId); |
| | | var dlg = new AssetsExchangerCurveQLViewDlg(); |
| | | dlg.SetBindingData(longDbId); |
| | | dlg.ShowDialog(); |
| | | } |
| | | |
| | |
| | | if (long.TryParse(vm.DbId, out long longDbId)) |
| | | { |
| | | var compressorViewModel = vm as HydroCompressorViewModel; |
| | | var dlg = new CompressorChartShowDlg(); |
| | | dlg.SetBingingData(longDbId); |
| | | var dlg = new AssetsCompressorCurveQLViewDlg(); |
| | | dlg.SetBindingData(longDbId); |
| | | dlg.ShowDialog(); |
| | | } |
| | | } |