| | |
| | | using AForge; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Concurrent; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | |
| | | public static string Path |
| | | { |
| | | get |
| | | { |
| | | { |
| | | if (path == null) path = Directory.GetCurrentDirectory()+"\\"; |
| | | 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; } } |
| | | 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 |
| | | { |
| | | |
| | |
| | | public Dictionary<string, SaveSettings> saveSettings { get; set; } = new Dictionary<string, SaveSettings>(); |
| | | |
| | | } |
| | | [Serializable] |
| | | public class SaveSettings |
| | | { |
| | | |