Example #1
0
 /// <summary>
 /// Генерировать HTML-код главного меню
 /// </summary>
 protected string GenMainMenuHtml()
 {
     TreeViewRenderer.Options options = new TreeViewRenderer.Options()
     {
         ShowIcons = false
     };
     return(treeViewRenderer.GenerateHtml(userData.UserMenu.MenuItems, Request.Url.PathAndQuery, options));
 }
Example #2
0
 /// <summary>
 /// Генерировать HTML-код проводника представлений
 /// </summary>
 protected string GenExplorerHtml()
 {
     TreeViewRenderer.Options options = new TreeViewRenderer.Options()
     {
         ShowIcons        = true,
         FolderImageUrl   = ResolveUrl(FolderImageUrl),
         DocumentImageUrl = ResolveUrl(DocumentImageUrl)
     };
     return(treeViewRenderer.GenerateHtml(userData.UserViews.ViewNodes, SelectedViewID, options));
 }