cloudflight
2024-06-10 07ffb6029da759a8ce4498207cfa5f6d069c44b1
Hydraulic/Hydro.CommonBase/Helper/GlobalConfig.cs
@@ -1,5 +1,6 @@
using AForge;
using Newtonsoft.Json;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
@@ -35,16 +36,22 @@
                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; } }
        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; } }
        public static string resultPath { get { string p = Path + @"\result\"; if (!Directory.Exists(p)) Directory.CreateDirectory(p); return p; } }
        public static string resultPath { get { string p = Path + @"result\"; if (!Directory.Exists(p)) Directory.CreateDirectory(p); return p; } }
        public static string savePath { get { string p = Path + @"\save\"; if (!Directory.Exists(p)) Directory.CreateDirectory(p); return p; } }
        public static string savePath { get { string p = Path + @"save\"; if (!Directory.Exists(p)) Directory.CreateDirectory(p); return p; } }
        public static string bakPath { get { string p = Path + @"\config_bk\"; if (!Directory.Exists(p)) Directory.CreateDirectory(p); return p; } }
        public static string recordPath { get { string p = Path + @"\Record\"; if (!Directory.Exists(p)) Directory.CreateDirectory(p); return p; } }
        public static string bakPath { get { string p = Path + @"config_bk\"; if (!Directory.Exists(p)) Directory.CreateDirectory(p); return p; } }
        public static string recordPath { get { string p = Path + @"Record\"; if (!Directory.Exists(p)) Directory.CreateDirectory(p); return p; } }
        public static string ChartFilePath { get { string p = Path + @"Chart\"; if (!Directory.Exists(p)) Directory.CreateDirectory(p); return p; } }
        public static string BranchPath { get { string p = Path + @"Branch\"; if (!Directory.Exists(p)) Directory.CreateDirectory(p); return p; } }
    }
    [Serializable]
    public class GlobalConfig
    {
        
@@ -123,6 +130,7 @@
        public Dictionary<string, SaveSettings> saveSettings { get; set; } = new Dictionary<string, SaveSettings>();
    }
    [Serializable]
    public class SaveSettings
    {