From 342fa8be89ce72d4a1f87fc857def22b41722dfc Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期日, 03 十一月 2024 14:43:19 +0800 Subject: [PATCH] 曲线 问题修改 --- WinFrmUI/Yw.WinFrmUI.Phart.Core/01-perform/01-pump-chart/01-chart/04-variable-speed/PumpVariableSpeedChart.cs | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-perform/01-pump-chart/01-chart/04-variable-speed/PumpVariableSpeedChart.cs b/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-perform/01-pump-chart/01-chart/04-variable-speed/PumpVariableSpeedChart.cs index 21b7f39..0360f29 100644 --- a/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-perform/01-pump-chart/01-chart/04-variable-speed/PumpVariableSpeedChart.cs +++ b/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-perform/01-pump-chart/01-chart/04-variable-speed/PumpVariableSpeedChart.cs @@ -63,6 +63,7 @@ { _line_visible = value; this.barCekLineVisible.Checked = _line_visible; + this.barBtnSetAxisQValue.Enabled = _line_visible; } } private bool _line_visible = false; @@ -705,7 +706,8 @@ if (workQ == null) { - workQ = (_minQ + _maxQ) / 2; + workQ = _minQ; + //workQ = (_minQ + _maxQ) / 2; } if (workQ < _minQ || workQ > _maxQ) @@ -1097,6 +1099,22 @@ CalcWorkPointByQ(chartQ); } + else + { + var hitInfo = chartControl1.CalcHitInfo(e.Location); + if (hitInfo.InConstantLine) + { + this.chartControl1.Cursor = Cursors.Hand; + } + else if (hitInfo.InAnnotation) + { + this.chartControl1.Cursor = Cursors.SizeAll; + } + else + { + this.chartControl1.Cursor = Cursors.Default; + } + } } private void chartControl1_MouseUp(object sender, MouseEventArgs e) @@ -1191,7 +1209,7 @@ { if (!_initialData) return; - _line_visible = visible; + LineVisible = visible; CalcWorkPointByQ(); } -- Gitblit v1.9.3