private void BuildChildren()
        {
            // fool it into thinking the theme.skin file exists in the requested path
            mojoThemeVirtualFile themeFile = new mojoThemeVirtualFile(_requestedDirectory.VirtualPath + "theme.skin");

            foreach (VirtualFile f in _requestedDirectory.Files)
            {
                string fileName = VirtualPathUtility.GetFileName(f.VirtualPath);
                if (fileName == "theme.skin.css")
                {
                    _files.Add(f);
                    _children.Add(f);
                }
            }

            _files.Add(themeFile);
            _children.Add(themeFile);
        }
        private void BuildChildren()
        {
            // fool it into thinking the theme.skin file exists in the requested path
            mojoThemeVirtualFile themeFile = new mojoThemeVirtualFile(_requestedDirectory.VirtualPath + "theme.skin");

            foreach (VirtualFile f in _requestedDirectory.Files)
            {
                string fileName = VirtualPathUtility.GetFileName(f.VirtualPath);
                if (fileName == "theme.skin.css")
                {
                    _files.Add(f);
                    _children.Add(f);
                }

            }

            _files.Add(themeFile);
            _children.Add(themeFile);
        }
Example #3
0
        private void BuildChildren()
        {
            // fool it into thinking the theme.skin file exists in the requested path
            mojoThemeVirtualFile themeFile = new mojoThemeVirtualFile(_requestedDirectory.VirtualPath + "theme.skin");

            List <string> moduleSkinFileNames = ModuleDefinition.GetAllModuleSkinFileNames();

            foreach (VirtualFile f in _requestedDirectory.Files)
            {
                string fileName = VirtualPathUtility.GetFileName(f.VirtualPath);
                if (fileName == "theme.skin.css" || moduleSkinFileNames.Contains(fileName))
                {
                    _files.Add(f);
                    _children.Add(f);
                }
            }

            _files.Add(themeFile);
            _children.Add(themeFile);
        }