Ejemplo n.º 1
0
 protected void Bind(NodeCollection objNodes)
 {
     Control.Bind(objNodes);
 }
Ejemplo n.º 2
0
 private static void AddNode(TabInfo objTab, NodeCollection objNodes, Hashtable objBreadCrumbs, PortalSettings objPortalSettings, ToolTipSource eToolTips)
 {
     Node objNode = new Node();
     if (objTab.Title == "~")
     {
         objNodes.AddBreak();
     }
     else
     {
         if (objBreadCrumbs.Contains(objTab.TabID))
         {
             objNode.BreadCrumb = true;
             if (objTab.TabID == objPortalSettings.ActiveTab.TabID)
             {
                 objNode.Selected = true;
             }
         }
         if (objTab.DisableLink)
             objNode.Enabled = false;
         objNode.ID = objTab.TabID.ToString();
         objNode.Key = objNode.ID;
         objNode.Text = objTab.LocalizedTabName;
         objNode.NavigateURL = objTab.FullUrl;
         objNode.ClickAction = eClickAction.Navigate;
         objNode.Image = objTab.IconFile;
         switch (eToolTips)
         {
             case ToolTipSource.TabName:
                 objNode.ToolTip = objTab.LocalizedTabName;
                 break;
             case ToolTipSource.Title:
                 objNode.ToolTip = objTab.Title;
                 break;
             case ToolTipSource.Description:
                 objNode.ToolTip = objTab.Description;
                 break;
         }
         objNodes.Add(objNode);
     }
 }
Ejemplo n.º 3
0
 public static NodeCollection GetNavigationNodes(string strNamespace, ToolTipSource eToolTips, int intStartTabId, int intDepth, int intNavNodeOptions)
 {
     NodeCollection objCol = new NodeCollection(strNamespace);
     return GetNavigationNodes(new Node(objCol.XMLNode), eToolTips, intStartTabId, intDepth, intNavNodeOptions);
 }
Ejemplo n.º 4
0
 public static Node GetNavigationNode(string strID, string strNamespace)
 {
     NodeCollection objNodes = GetNavigationNodes(strNamespace);
     Node objNode = objNodes.FindNode(strID);
     NodeCollection objReturnNodes = new NodeCollection(strNamespace);
     objReturnNodes.Import(objNode);
     objReturnNodes[0].ID = strID;
     return objReturnNodes[0];
 }
Ejemplo n.º 5
0
 public static NodeCollection GetActionNodes(ModuleAction objActionRoot, Control objControl, int intDepth)
 {
     NodeCollection objCol = new NodeCollection(objControl.ClientID);
     IActionControl objActionControl = objControl as IActionControl;
     if (objActionControl != null)
     {
         if (objActionRoot.Visible)
         {
             objCol.Add();
             Node objRoot = objCol[0];
             objRoot.ID = objActionRoot.ID.ToString();
             objRoot.Key = objActionRoot.ID.ToString();
             objRoot.Text = objActionRoot.Title;
             objRoot.NavigateURL = objActionRoot.Url;
             objRoot.Image = objActionRoot.Icon;
             objRoot.Enabled = false;
             AddChildActions(objActionRoot, objRoot, objRoot.ParentNode, objActionControl, intDepth);
         }
     }
     return objCol;
 }
Ejemplo n.º 6
0
 public static Node GetActionNode(string strID, string strNamespace, ModuleAction objActionRoot, Control objControl)
 {
     NodeCollection objNodes = GetActionNodes(objActionRoot, objControl, -1);
     Node objNode = objNodes.FindNode(strID);
     NodeCollection objReturnNodes = new NodeCollection(strNamespace);
     objReturnNodes.Import(objNode);
     objReturnNodes[0].ID = strID;
     return objReturnNodes[0];
 }