Exemplo n.º 1
0
 public void RefreshFiles()
 {
     this.files.Clear();
     foreach (System.Xml.XmlElement e in XmlEnum.ChildrenByTagName(this.DocumentElement, "F"))
     {
         this.files.Add(new File(e));
     }
 }
Exemplo n.º 2
0
 internal File(System.Xml.XmlElement elem) : base()
 {
     this.Element = elem;
     this.UpdateNodeText();
     foreach (System.Xml.XmlElement elem0 in XmlEnum.ChildrenByTagName(this.Element, "F"))
     {
         this.Nodes.Add(new File(elem0));
     }
 }
Exemplo n.º 3
0
 //===========================================================
 //		子要素の検索
 //===========================================================
 /// <summary>
 /// 指定した tagName の一つ目の要素を取得します。無い場合は作成します。
 /// </summary>
 /// <param name="tagName">要素名を指定します。</param>
 /// <returns>見つけた、亦は作成した System.Xml.XmlElement のインスタンスを返します。</returns>
 private System.Xml.XmlElement GetElement(string tagName)
 {
     foreach (System.Xml.XmlElement node in XmlEnum.ChildrenByTagName(this.Element, tagName))
     {
         return(node);
     }
     System.Xml.XmlElement elem = this.Element.OwnerDocument.CreateElement(tagName);
     this.Element.AppendChild(elem);
     return(elem);
 }