From ce65365b03d49fc6c6961e0c690768b93c4a4c7c Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期二, 03 十二月 2024 16:59:57 +0800
Subject: [PATCH] 曲线变速视图

---
 WinFrmUI/Yw.WinFrmUI.Phart.Core/01-pump/01-single/03-variable-speed/PumpVariableSpeedChart.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-pump/01-single/03-variable-speed/PumpVariableSpeedChart.cs b/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-pump/01-single/03-variable-speed/PumpVariableSpeedChart.cs
index bda8a37..41b466b 100644
--- a/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-pump/01-single/03-variable-speed/PumpVariableSpeedChart.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-pump/01-single/03-variable-speed/PumpVariableSpeedChart.cs
@@ -224,7 +224,7 @@
             }
             if (qp != null && _qp_visible)
             {
-                var qp_y = qe.GetPointY(qh_x);
+                var qp_y = qp.GetPointY(qh_x);
                 var qp_pt = _diagram.DiagramToPoint(qh_x, qp_y, _axis_x_flow, _axis_y_power);
                 var qp_pt_x = qp_pt.Point.X;
                 var qp_pt_y = qp_pt.Point.Y;
@@ -414,6 +414,7 @@
                     continue;
                 var qe_pt_list = vm.CurrentCurveQE.GetPointList();
                 var yyy = qe_pt_list.Select(x => x.Y);
+                _min_eff = Math.Min(_min_eff, yyy.Min());
                 _max_eff = Math.Max(_max_eff, yyy.Max());
             }
 
@@ -564,8 +565,8 @@
             this.chartControl1.BeginInit();
             this.chartControl1.Series.Clear();
 
-            var annotationCount = this.chartControl1.AnnotationRepository.Count;
-            for (int i = annotationCount - 1; i > 0; i--)
+            var annotation_count = this.chartControl1.AnnotationRepository.Count;
+            for (int i = annotation_count - 1; i > 0; i--)
             {
                 if (i == 0)
                     break;

--
Gitblit v1.9.3