InfoPathScraper.Model.InfoPathManifest.InitializeViewNames C# (CSharp) Method

InitializeViewNames() private method

An xsn can have many resource files in it. The only reliable way to know which ones are views is to parse the manifest for those that are called out as such. We just need string names of them because the Microsoft.Deployment.Compression.Cab code will happily find them by name.
private InitializeViewNames ( ) : void
return void
        private void InitializeViewNames()
        {
            if (_viewNames != null) return;
            _viewNames = new List<string>();

            foreach (XElement mainpane in XDocument.Descendants(xsfNamespace + viewNode))
            {
                _viewNames.Add(mainpane.Attribute(viewNameAttribute).Value);
            }
        }