public void Dispose() { if (this._ColorScheme != null) { this._ColorScheme.Dispose(); this._ColorScheme = null; } if (this._FontScheme != null) { this._FontScheme.Dispose(); this._FontScheme = null; } if (this._FormatScheme != null) { this._FormatScheme.Dispose(); this._FormatScheme = null; } }
public void Dispose() { if (this._ColorScheme != null) { this._ColorScheme.Dispose(); this._ColorScheme = null; } if (this._FontScheme != null) { this._FontScheme.Dispose(); this._FontScheme = null; } if (this._FormatScheme != null) { this._FormatScheme.Dispose(); this._FormatScheme = null; } }
public ThemeSysColor(ThemeColorScheme colorScheme, string parenetNodeName) { this._ColorScheme = colorScheme; this._parentNodeName = parenetNodeName; }
public ThemeSysColor(ThemeColorScheme colorScheme, string parenetNodeName) { this._ColorScheme = colorScheme; this._parentNodeName = parenetNodeName; }
/// <summary> /// FileName:theme1.xml /// <para>NodePath:theme/themeElements/clrScheme</para> /// </summary> /// <param name="bookViewsRoot"></param> internal void ReadTheme_themeElements_clrScheme(ThemeColorScheme target, XElement item) { target.Name = item.Attribute("name").Value; foreach (XElement node_dk1 in item.Nodes()) { foreach (XElement node in node_dk1.Nodes()) { switch (node.Name.LocalName) { case "sysClr": ThemeSysColor themeSysColor = new ThemeSysColor(target, node.Name.LocalName); themeSysColor.Val = node.Attribute("val").Value; themeSysColor.LastClr = node.Attribute("lastClr").Value; target.Colors.Add(target.Colors.Count, themeSysColor); break; case "srgbClr": ThemeSrgbColor themeSrgbColor = new ThemeSrgbColor(target, node.Name.LocalName); themeSrgbColor.Val = node.Attribute("val").Value; target.Colors.Add(target.Colors.Count, themeSrgbColor); break; } } } }