static void RecalcTreeNodes() { TreeViewCtrl treeView = s_root.FindControl("_MainTreeView") as TreeViewCtrl; if (treeView == null) { return; } foreach (var root in treeView.Roots) { TreeViewCtrl.PreorderTraverse(root, RecalcTreeNodeVisitCallback); } }
static void CollectAllPaths() { TreeViewCtrl treeView = s_root.FindControl("_MainTreeView") as TreeViewCtrl; if (treeView == null) { return; } ResourceManageConfig.GetInstance().Paths.Clear(); foreach (var root in treeView.Roots) { TreeViewCtrl.PreorderTraverse(root, CollectAllPathsTreeNodeVisitCallback); } }
static void CollectAllPaths() { //Modify by liteng for 发布工具改善 PackageExportToolModel.GetInstance().GetPackageInfo().ExportAssets.Clear(); TreeViewCtrl treeView = s_root.FindControl("_MainTreeView") as TreeViewCtrl; if (treeView == null) { return; } foreach (var root in treeView.Roots) { TreeViewCtrl.PreorderTraverse(root, CollectAllPathsTreeNodeVisitCallback); } }
public override void Visit(EditorControl c) { currCtrl = c as TreeViewCtrl; if ( (null == currCtrl) ) { return; } PreDrawTree(); foreach (var root in currCtrl.Roots) { TreeViewCtrl.PreorderTraverse(root, DrawTreeNode); } AfterDrawTree(); }