private static void LoadFolders(System.Xml.XmlDocument xmlDocument, Models.Project project) { foreach (System.Xml.XmlNode node in xmlDocument.GetElementsByTagName("Folder")) { Models.Folder folder = new Models.Folder(); foreach (System.Xml.XmlAttribute attribute in node.Attributes) { switch (attribute.LocalName) { case "RelPath": { folder.RelPath = node.Attributes["RelPath"].Value; break; } default: { throw new System.Exception("Unknown project folder attribute: " + attribute.LocalName); } } } project.Folders.Add(folder); } }
public void Remove(Folder item) { this.List.Remove(item); }
public bool Contains(Folder item) { return(this.List.Contains(item)); }
public void Add(Folder item) { this.List.Add(item); }