Пример #1
0
        public virtual void Reload()
        {
            if (File.Exists(FileName))
            {
                this.Content = mSerializer.Deserialize(FileUtil.ReadFromFile(FileName)) ?? new Dictionary <string, object>();
            }

            if (mSaveDefaultValues && DefaultValues != null)
            {
                Content = MergeWithDefaultValues(Content, DefaultValues);
                //save the file even if it's empty to show that there are no default values
                ForceSave();
            }
        }