From c0f9915265878e56e91ee97f7f8d925db1e12626 Mon Sep 17 00:00:00 2001 From: cloudflight <cloudflight@126.com> Date: 星期六, 02 十二月 2023 18:50:45 +0800 Subject: [PATCH] 2023年12月2日_3 --- Hydro.CommonBase/Helper/GlobalConfig.cs | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Hydro.CommonBase/Helper/GlobalConfig.cs b/Hydro.CommonBase/Helper/GlobalConfig.cs index a4532c6..5f5a8f4 100644 --- a/Hydro.CommonBase/Helper/GlobalConfig.cs +++ b/Hydro.CommonBase/Helper/GlobalConfig.cs @@ -22,7 +22,8 @@ } public class GlobalPath { - public static string Path { get; set; } + private static string path = null; + public static string Path { get { return path; } set { path = value; if (!string.IsNullOrEmpty(path) && path[path.Length - 1] != '\\') path = path + "\\"; } } public static string configPath { get { string p = Path + @"\config\"; if (!Directory.Exists(p)) Directory.CreateDirectory(p); return p; }} public static string modelPath { get { string p = Path + @"\model\"; if (!Directory.Exists(p)) Directory.CreateDirectory(p); return p; } } @@ -111,12 +112,11 @@ public Dictionary<string, SaveSettings> saveSettings { get; set; } = new Dictionary<string, SaveSettings>(); } - public class SaveSettings { public List<int> Length_Ds=null; - public List<DRange> list_Range=null; + public List<MyDoubleRange> list_Range=null; public ConcurrentDictionary<ulong, double> saveDatas = null; public string savePath=null; @@ -176,7 +176,7 @@ { if (value == null) return; - list_Range = value.Split('|').ToList().Select(n => new DRange(double.Parse(n.Split(',')[0]), double.Parse(n.Split(',')[1]))).ToList(); + list_Range = value.Split('|').ToList().Select(n => new MyDoubleRange(double.Parse(n.Split(',')[0]), double.Parse(n.Split(',')[1]))).ToList(); } -- Gitblit v1.9.3