From b5435a4a54cf362961cdfd958c4c78efe0478224 Mon Sep 17 00:00:00 2001 From: ningshuxia <ningshuxia0927@outlook.com> Date: 星期二, 06 五月 2025 16:05:40 +0800 Subject: [PATCH] 主界面修改 --- WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/Dataset.cs | 28 +++++++++++++++------------- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/Dataset.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/Dataset.cs index 2f0c291..3e5dd15 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/Dataset.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/Dataset.cs @@ -1,6 +1,7 @@ -锘縰sing MathNet.Numerics.LinearAlgebra.Double; // 寮曞叆 Math.NET Numerics 搴撹繘琛屽椤瑰紡鎷熷悎 -using MathNet.Numerics; +锘縰sing MathNet.Numerics; using MathNet.Numerics.LinearAlgebra; +using MathNet.Numerics.LinearAlgebra.Double; // 寮曞叆 Math.NET Numerics 搴撹繘琛屽椤瑰紡鎷熷悎 +using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Drawing; @@ -8,11 +9,11 @@ using System.Text; using System.Threading.Tasks; //using System.Windows.Forms.DataVisualization.Charting; -using Hydro.CommonBase; -using Hydro.CommonBase; -using Newtonsoft.Json; +using Yw.WinFrmUI.Q3d; +using Yw.WinFrmUI.Q3d; +using Yw.WinFrmUI.Q3d; -namespace Hydro.MapView +namespace Yw.WinFrmUI.Q3d { [Serializable] public class Dataset @@ -50,13 +51,13 @@ { case "娴侀噺鎵▼鏇茬嚎": return Color.Blue; - //break; + //break; case "娴侀噺鍔熺巼鏇茬嚎": return Color.Orange; - //break; + //break; case "娴侀噺鏁堢巼鏇茬嚎": return Color.Red; - //break; + //break; default: return Color.Blue; } @@ -203,7 +204,8 @@ if (range_X == null) { range_X = new DRange(double.MaxValue, double.MinValue); - Data.ForEach(p => { + Data.ForEach(p => + { if (range_X.Min > p.X) range_X.Min = p.X; if (range_X.Max < p.X) range_X.Max = p.X; }); @@ -282,9 +284,9 @@ double b = coefficients[1]; // 涓�娆¢」绯绘暟 double c = coefficients[0] - y; // 甯告暟椤圭郴鏁板噺鍘荤粰瀹氱殑 y 鍊� - + var roots = MathSolver.Solve(a, b, c); - if (roots == null)return ErrNum; + if (roots == null) return ErrNum; else return roots.Max(); } @@ -311,7 +313,7 @@ //} else { - + return Solve(y); } } -- Gitblit v1.9.3