示例#1
0
        public virtual void SetPlugInInfo(IPlugInContainer container, IPlugIn pi, LACTreeNode treeNode, LWTreeView lmcTreeview, CServerControl sc)
        {
            this.container   = container;
            this.pi          = pi;
            this.treeNode    = treeNode;
            this.lmctreeview = lmcTreeview;

            if (treeNode != null)
            {
                treeNode.PluginPage = this;
            }

            // disable if necessary
            if (ShowInDisabledState)
            {
                DisableForWindows();
            }
        }
示例#2
0
        /// <summary>
        /// Recursively calls SetContext on the plugin page associated with this LACTreeNode,
        /// and does the same to all descendents of this LACTreeNode
        /// </summary>
        /// <param name="hn">Hostinfo to assign to this LACTreeNode and its descendents.  May be null.</param>
        public void SetContext(IContext ctx)
        {
            _ctx = ctx;

            if (_pluginPage != null)
            {
                _pluginPage.SetContext(ctx);
            }

            if (Nodes != null)
            {
                foreach (TreeNode node in Nodes)
                {
                    LACTreeNode lac = (LACTreeNode)node;
                    if (lac != null)
                    {
                        lac.SetContext(ctx);
                    }
                }
            }
        }
示例#3
0
 public void ShowControl(LACTreeNode node)
 {
     controlManage.ShowControl(node);
 }
示例#4
0
 public void SetIPlugInRootNode(LACTreeNode tn)
 {
     controlManage.SetRootParentNode(tn);
 }