Ejemplo n.º 1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// BindMenu binds the Navigation Provider to the Node Collection
 /// </summary>
 /// <param name="objNodes">The Nodes collection to bind</param>
 /// -----------------------------------------------------------------------------
 private void BindMenu(DNNNodeCollection objNodes)
 {
     Visible = ActionManager.DisplayControl(objNodes);
     if (Visible)
     {
         //since we always bind we need to clear the nodes for providers that maintain their state
         ProviderControl.ClearNodes();
         foreach (DNNNode objNode in objNodes)
         {
             ProcessNodes(objNode);
         }
         ProviderControl.Bind(objNodes);
     }
 }
Ejemplo n.º 2
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// DisplayControl determines whether the control should be displayed
 /// </summary>
 protected bool DisplayControl(DNNNodeCollection objNodes)
 {
     return(ActionManager.DisplayControl(objNodes));
 }