Esempio n. 1
0
 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;
     }
 }
Esempio n. 2
0
 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;
     }
 }
Esempio n. 3
0
 public ThemeSysColor(ThemeColorScheme colorScheme, string parenetNodeName)
 {
     this._ColorScheme = colorScheme;
     this._parentNodeName = parenetNodeName;
 }
Esempio n. 4
0
 public ThemeSysColor(ThemeColorScheme colorScheme, string parenetNodeName)
 {
     this._ColorScheme    = colorScheme;
     this._parentNodeName = parenetNodeName;
 }
Esempio n. 5
0
        /// <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;
                    }
                }
            }
        }