public void Save() { XElement doc = new XElement("SessionSettings"); doc.Add(this.FilterSettings.SaveAsXml()); if (this.ActiveAssemblyList != null) { doc.Add(new XElement("ActiveAssemblyList", Escape(this.ActiveAssemblyList))); } doc.Add(new XElement("WindowState", ToString(this.WindowState))); doc.Add(new XElement("IsFullScreen", ToString(this.IsFullScreen))); if (this.WindowBounds != null) { doc.Add(new XElement("WindowBounds", ToString(this.WindowBounds))); } doc.Add(new XElement("WordWrap", ToString(this.WordWrap))); doc.Add(new XElement("HighlightCurrentLine", ToString(this.HighlightCurrentLine))); doc.Add(new XElement("LeftColumnWidth", ToString(this.LeftColumnWidth))); doc.Add(new XElement("TopPaneHeight", ToString(this.TopPaneSettings.Height))); doc.Add(new XElement("TopPaneName", ToString(this.TopPaneSettings.Name))); doc.Add(new XElement("BottomPaneHeight", ToString(this.BottomPaneSettings.Height))); doc.Add(new XElement("BottomPaneName", ToString(this.BottomPaneSettings.Name))); doc.Add(new XElement("ThemeName", ToString(this.ThemeName))); doc.Add(new XElement("IgnoredWarnings", IgnoredWarnings.Select(id => new XElement("Warning", Escape(id))))); if (ICSharpCode.ILSpy.Options.DisplaySettingsPanel.CurrentDisplaySettings.RestoreTabsAtStartup) { doc.Add(SavedTabGroupsState.ToXml(new XElement("TabGroups"))); } ILSpySettings.SaveSettings(doc); }
public void Save() { XElement doc = new XElement("SessionSettings"); doc.Add(this.FilterSettings.SaveAsXml()); if (this.ActiveAssemblyList != null) { doc.Add(new XElement("ActiveAssemblyList", this.ActiveAssemblyList)); } if (this.ActiveTreeViewPath != null) { doc.Add(new XElement("ActiveTreeViewPath", ActiveTreeViewPath.Select(p => new XElement("Node", Escape(p))))); } if (this.ActiveAutoLoadedAssembly != null) { doc.Add(new XElement("ActiveAutoLoadedAssembly", this.ActiveAutoLoadedAssembly)); } doc.Add(new XElement("WindowState", ToString(this.WindowState))); doc.Add(new XElement("WindowBounds", ToString(this.WindowBounds))); doc.Add(new XElement("SplitterPosition", ToString(this.SplitterPosition))); doc.Add(new XElement("TopPaneSplitterPosition", ToString(this.TopPaneSplitterPosition))); doc.Add(new XElement("BottomPaneSplitterPosition", ToString(this.BottomPaneSplitterPosition))); ILSpySettings.SaveSettings(doc); }
public void Save() { XElement updateSettings = new XElement("UpdateSettings"); updateSettings.Add(new XElement("AutomaticUpdateCheckEnabled", automaticUpdateCheckEnabled)); if (lastSuccessfulUpdateCheck != null) updateSettings.Add(new XElement("LastSuccessfulUpdateCheck", lastSuccessfulUpdateCheck)); ILSpySettings.SaveSettings(updateSettings); }