Exemple #1
0
 /// <summary>
 /// Load all fonts. Element must be <Fonts> node
 /// </summary>
 /// <param name="element"></param>
 public void Load(System.Xml.XmlNode element)
 {
     if (element.Name == "Fonts")
     {
         XmlNodeList fontNodes = element.SelectNodes("Font");
         foreach (XmlNode fontNode in fontNodes)
         {
             EditorFont newFont = new EditorFont();
             newFont.Load(fontNode);
             this.fonts.Add(newFont);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Load all fonts. Element must be <Fonts> node 
 /// </summary>
 /// <param name="element"></param>
 public void Load(System.Xml.XmlNode element)
 {
     if (element.Name == "Fonts")
     {
         XmlNodeList fontNodes = element.SelectNodes("Font");
         foreach (XmlNode fontNode in fontNodes)
         {
             EditorFont newFont = new EditorFont();
             newFont.Load(fontNode);
             this.fonts.Add(newFont);
         }
     }
 }