示例#1
0
        /// <summary>
        /// Instantiates a new FileManager and loads the config.xml if it exists
        /// </summary>
        public ConfigurationManager()
        {
            conf.updateInterval = MIN_INTERVAL;
            FileManager fileMan = new FileManager();

            if (fileMan.LoadXML <Config>(filename) != null)
            {
                conf = fileMan.LoadXML <Config>(filename);
            }
        }
        /// <summary>
        /// Loads the SyncDataStorage from the local storage file
        /// </summary>
        private void LoadLocalStorage()
        {
            FileManager fileManager = new FileManager();

            _syncStorage = fileManager.LoadXML <SyncDataStorage>(SYNCSTORAGE_FILENAME);
        }