示例#1
0
 public void AddIncludedFile(IncludedFile file)
 {
     m_includedFiles.Add(file);
 }
示例#2
0
 public void AddIncludedFile(IncludedFile file)
 {
     m_includedFiles.Add(file);
 }
        public IEnumerable<IncludedFile> ReadStaticFilesDetails(XmlNode rootElement)
        {
            if (rootElement == null) throw new DeserialisationException("Could not find StaticFiles node");

            List<IncludedFile> paths = new List<IncludedFile>();

            var fileNodes = rootElement.SelectNodes("StaticFile");
            if (fileNodes != null)
                foreach (XmlNode node in fileNodes)
                {
                    //					string displayName = node.Attributes["displayname"].Value;
                    var file = new IncludedFile(node.Attributes["filename"].Value);
                    paths.Add(file);
                }
            return paths;
        }