public void treeView_SelectedNodeChanged(DynamicTreeView.DynamicTreeView obj) { if (treeView.SelectedNode != null) { foreach (var item in GolableInstance.PageList()) { if (item.PageName == treeView.SelectedNode.Text) { _activModel = item; } } activePanel(_activModel); //DockPanel panel = GolableInstance.GetDockPanel(); //foreach (var item in panel.Documents ) //{ // if (item is DesignWorkbench) // { // DesignWorkbench workbench = item as DesignWorkbench; // if (workbench.pageGuid==_activModel.PageGuid) // { // workbench.Activate(); // } // } //} } }
public DynamicTreeNodeCollection(DynamicTreeView view, DynamicTreeNode node = null) : base() { this.view = view; this.node = node; }