Beispiel #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); }
        }
Beispiel #2
0
 private static void DebugLog(object m) => FullAutoStrut.DebugLog(m: m);
Beispiel #3
0
 private static void DebugLog(this Exception e) => FullAutoStrut.DebugLog(m: e);