Пример #1
0
        public void Load_Toolbox_Component(RadTreeNodeEventArgs eNode)
        {
            List <Toolbox_Tool> myToolbox_Tools = Get_Toolbox_Tools(eNode.Node.Value, null);

            foreach (Toolbox_Tool myToolbox_Tool in myToolbox_Tools)
            {
                Modules.ModuleMgr myModuleMgr = new Nexus.Core.Modules.ModuleMgr();
                Modules.Component myComponent = myModuleMgr.Get_Component(myToolbox_Tool.ComponentID);

                RadTreeNode node = new RadTreeNode();
                node.Text     = myToolbox_Tool.Tool_Name;
                node.Value    = myToolbox_Tool.ComponentID;
                node.ImageUrl = myComponent.Component_Icon;
                node.Expanded = false;

                eNode.Node.Nodes.Add(node);
            }
        }
Пример #2
0
        // Get Groups
        public void Load_Toolbox_Group(RadTreeView myTreeView)
        {
            List <Toolbox_Group> myToolbox_Groups = Get_Toolbox_Groups(null);

            foreach (Toolbox_Group myToolbox_Group in myToolbox_Groups)
            {
                Modules.ModuleMgr myModuleMgr = new Nexus.Core.Modules.ModuleMgr();
                Modules.Module    myModule    = myModuleMgr.Get_Module(myToolbox_Group.ModuleID);

                RadTreeNode rootnode = new RadTreeNode();
                rootnode.Text      = myToolbox_Group.Group_Name;
                rootnode.Value     = myToolbox_Group.GroupID;
                rootnode.ImageUrl  = myModule.Module_Icon;
                rootnode.Expanded  = myToolbox_Group.IsOpened;
                rootnode.AllowDrag = false;

                Load_Toolbox_Component(rootnode);

                myTreeView.Nodes.Add(rootnode);
            }
        }