duheng
2024-12-04 ca1ccd0dd9f2d6936368f07d14a2b29b309fd151
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/02-pump/01-pumpsinglematching/PumpSingleMatchingCtrl.cs
@@ -18,9 +18,9 @@
        private List<PhartViewModel> _allPhartList = null;
        private readonly Lazy<BLL.XhsPumpMainPhartMappingExtensions> _bll_ex = new();
        private PumpMatchingViewModel _pumpMatchingViewModel;
        private HydroPumpMatchingViewModel _pumpMatchingViewModel;
        public async void SetBindingData(PumpMatchingViewModel pumpMatchingViewModel)
        public async void SetBindingData(HydroPumpMatchingViewModel pumpMatchingViewModel)
        {
            _pumpMatchingViewModel = pumpMatchingViewModel;
            _allBindingList = new List<PumpSingleMatchingViewModel>();
@@ -139,28 +139,28 @@
                    if (graph_qh != null)
                    {
                        var points_qh = PhartPerformCurveHelper.GetFeatPointList(graph_qh.GraphType, graph_qh.GeometryInfo, 100, null);
                        _pumpMatchingViewModel.MatchingCurveQH = new List<CurvePointMatchingViewModel>();
                        _pumpMatchingViewModel.MatchingCurveQH = new List<HydroCurvePointViewModel>();
                        foreach (var item in points_qh)
                        {
                            _pumpMatchingViewModel.MatchingCurveQH.Add(new CurvePointMatchingViewModel(item.X, item.Y));
                            _pumpMatchingViewModel.MatchingCurveQH.Add(new HydroCurvePointViewModel(item.X, item.Y));
                        }
                    }
                    if (graph_qe != null)
                    {
                        var points_qe = PhartPerformCurveHelper.GetFeatPointList(graph_qe.GraphType, graph_qe.GeometryInfo, 100, null);
                        _pumpMatchingViewModel.MatchingCurveQE = new List<CurvePointMatchingViewModel>();
                        _pumpMatchingViewModel.MatchingCurveQE = new List<HydroCurvePointViewModel>();
                        foreach (var item in points_qe)
                        {
                            _pumpMatchingViewModel.MatchingCurveQE.Add(new CurvePointMatchingViewModel(item.X, item.Y));
                            _pumpMatchingViewModel.MatchingCurveQE.Add(new HydroCurvePointViewModel(item.X, item.Y));
                        }
                    }
                    if (graph_qp != null)
                    {
                        var points_qp = PhartPerformCurveHelper.GetFeatPointList(graph_qp.GraphType, graph_qp.GeometryInfo, 100, null);
                        _pumpMatchingViewModel.MatchingCurveQP = new List<CurvePointMatchingViewModel>();
                        _pumpMatchingViewModel.MatchingCurveQP = new List<HydroCurvePointViewModel>();
                        foreach (var item in points_qp)
                        {
                            _pumpMatchingViewModel.MatchingCurveQP.Add(new CurvePointMatchingViewModel(item.X, item.Y));
                            _pumpMatchingViewModel.MatchingCurveQP.Add(new HydroCurvePointViewModel(item.X, item.Y));
                        }
                    }
                }