/// ----------------------------------------------------------------------------- /// <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); } }
/// ----------------------------------------------------------------------------- /// <summary> /// DisplayControl determines whether the control should be displayed /// </summary> protected bool DisplayControl(DNNNodeCollection objNodes) { return(ActionManager.DisplayControl(objNodes)); }