示例#1
0
        private Settings(bool load)
        {
            try
            {
                if (!load)
                {
                    return;
                }
                if (!File.Exists(path: SettingsFile))
                {
                    return;
                }

                FullAutoStrut.DebugLog(m: $"Loading Settings: {SettingsFile}");
                ConfigNode.LoadObjectFromConfig(obj: this, node: ConfigNode.Load(fileFullName: SettingsFile));
            }
            catch (Exception e) { FullAutoStrut.DebugLog(m: e); }
        }
示例#2
0
 private static void DebugLog(object m) => FullAutoStrut.DebugLog(m: m);
示例#3
0
 private static void DebugLog(this Exception e) => FullAutoStrut.DebugLog(m: e);