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(); } }
/// <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); } } } }
public void ShowControl(LACTreeNode node) { controlManage.ShowControl(node); }
public void SetIPlugInRootNode(LACTreeNode tn) { controlManage.SetRootParentNode(tn); }