示例#1
0
        private InstalledModConfigurations()
        {
            if (_log.IsDebugEnabled)
            {
                _log.DebugFormat("Starting {0}", MethodBase.GetCurrentMethod().ToString());
            }
            Configurations = new ConfigurationGroup();

            if (_log.IsDebugEnabled)
            {
                _log.DebugFormat("Ending {0}", MethodBase.GetCurrentMethod().ToString());
            }
        }
        public void SaveData()
        {
            if (_log.IsDebugEnabled)
            {
                _log.DebugFormat("Starting {0}", MethodBase.GetCurrentMethod().ToString());
            }
            XmlDocument doc = XmlConverter.ToXmlDocument(this, true);

            doc.Save(Locations.ActiveModsFile);

            ConfigurationGroup hold = Configurations;

            Configurations = null;
            Configurations = hold;
            if (_log.IsDebugEnabled)
            {
                _log.DebugFormat("Ending {0}", MethodBase.GetCurrentMethod().ToString());
            }
        }
 private ActiveModConfigurations()
 {
     Configurations = new ConfigurationGroup();
 }