private void SetViewFolder(IViewFolder value)
        {
            IViewFolder viewFolder = value;

            foreach (IViewFolderSettings settings in this.Settings.ViewFolders)
            {
                IViewFolder folder2 = this.ActivateViewFolder(settings);
                if (!string.IsNullOrEmpty(settings.Subfolder))
                {
                    folder2 = new SubViewFolder(folder2, settings.Subfolder);
                }
                viewFolder = viewFolder.Append(folder2);
            }
            this._viewFolder = viewFolder;
        }
        public static IViewFolder AddLayoutsPath(this IViewFolder viewFolder, string virtualPath)
        {
            SubViewFolder additional = new SubViewFolder(new VirtualPathProviderViewFolder(virtualPath), "Layouts");

            return(viewFolder.Append(additional));
        }