Shuxia Ning
2024-12-03 ce65365b03d49fc6c6961e0c690768b93c4a4c7c
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;