Exemple #1
0
        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);
            }
        }
Exemple #2
0
 public void Remove(Folder item)
 {
     this.List.Remove(item);
 }
Exemple #3
0
 public bool Contains(Folder item)
 {
     return(this.List.Contains(item));
 }
Exemple #4
0
 public void Add(Folder item)
 {
     this.List.Add(item);
 }