Example #1
0
        public static void SaveConfig(ConfigClass _config)
        {
            Configuration cfg = Configuration.LoadFromFile(configFile);

            cfg["MAIN"].GetValuesFrom(_config);
            cfg.SaveToFile("CaptureFS.cfg");
        }
Example #2
0
        public static ConfigClass LoadConfig(string _section)
        {
            Configuration cfg = Configuration.LoadFromFile(configFile);

            cfg = Configuration.LoadFromFile(configFile);
            return(cfg[_section].ToObject <ConfigClass>());
        }