lixiaojun
2024-12-02 dbcef6befb123066754141adef6dc3ef6653b6ce
WinFrmUI/Yw.WinFrmUI.Phart.Core/v2/02-pump/01-chart/PumpViewChart.cs
ÎļþÃû´Ó WinFrmUI/Yw.WinFrmUI.Phart.Core/v2/02-pump/01-view/PumpViewChart.cs ÐÞ¸Ä
@@ -45,7 +45,7 @@
        private List<Yw.Geometry.Point2d> _def_qe_pt_list;
        private List<Yw.Geometry.Point2d> _def_qp_pt_list;
         
        private PumpGroupPt _work_point = new(0, 0, 0, 0, 0);
        private PumpQueryPointViewModel _work_point = new();
        private PumpCoordinate _coordinate;
        private bool _equip_visible = true;
@@ -95,7 +95,7 @@
        public event Action<PumpCoordinate> OnCurveCoordinateChanged;
         
        public event Action<PumpGroupPt> OnCalcQueryPoint = null;
        public event Action<PumpQueryPointViewModel> OnCalcQueryPoint = null;
        #endregion
@@ -189,7 +189,7 @@
            {  
                var dis_min_h = _coordinate.DispMinH();
                var equip_paras = EquipCurveHelper.CalcEquipCurve(_qh, _equip_pt, dis_min_h, out Yw.Geometry.Point2d sect_pt);
                if (equip_paras != null && equip_paras.EquipCurve.IsValid())
                if (equip_paras != null && equip_paras.IsValid())
                {
                    using Pen pen = new(Color.Black, 2);
@@ -210,7 +210,7 @@
                    }
                    // åˆ›å»ºGraphicsPath对象,并添加样条线
                    var pts = equip_paras.EquipCurve.GetPointList().Select(x => new PointF((float)x.X, (float)x.Y)).ToArray();
                    var pts = equip_paras.GetPointList().Select(x => new PointF((float)x.X, (float)x.Y)).ToArray();
                    using var path = new System.Drawing.Drawing2D.GraphicsPath();
                    var g_pts = new List<PointF>();
                    foreach (var pt in pts)
@@ -250,7 +250,7 @@
            _def_qp_pt_list = null;
            _coordinate = null;
            _work_point = new PumpGroupPt(0, 0, 0, 0, 0);
            _work_point = new PumpQueryPointViewModel();
            UpdateChart(false);
        }
@@ -717,13 +717,13 @@
            if (_qe != null)
            {
                _work_point.E = _qe.GetPointY(_work_point.Q);
                workInfoStringBuilder.AppendLine($"效率:{_work_point.E.ToString("N1")} ");
                workInfoStringBuilder.AppendLine($"效率:{_work_point.E.Value.ToString("N1")} ");
            }
            if (_qp != null)
            {
                _work_point.P = _qp.GetPointY(_work_point.Q);
                workInfoStringBuilder.Append($"功率:{_work_point.P.ToString("N1")} ");
                workInfoStringBuilder.Append($"功率:{_work_point.P.Value.ToString("N1")} ");
            }
            _query_flow_line.AxisValue = _work_point.Q;