Beispiel #1
0
 public void Save(ISettingsSection section)
 {
     section.Attribute(FILELIST_NAME_ATTR, Name);
     foreach (var info in files)
     {
         DnSpyFileInfoSerializer.Save(section.CreateSection(FILE_SECTION), info);
     }
 }
Beispiel #2
0
		public void Save(ISettingsSection section) {
			Debug.Assert(Content.Attribute<Guid?>(CONTENT_GUID_ATTR) != null);
			section.CreateSection(CONTENT_SECTION).CopyFrom(Content);
			section.CreateSection(UI_SECTION).CopyFrom(UI);
			section.CreateSection(TAB_UI_SECTION).CopyFrom(TabUI);
			foreach (var path in Paths)
				path.Save(section.CreateSection(PATH_SECTION));
			foreach (var f in AutoLoadedFiles)
				DnSpyFileInfoSerializer.Save(section.CreateSection(AUTOLOADED_SECTION), f);
		}