private void TreeDraw() { CodeToVCode codeToVCode = new CodeToVCode(CodeEditor.Text); TreeNode root = null; UpdateTreeView(ref root, codeToVCode.Scope.Items); treeView.Nodes.Clear(); treeView.Nodes.Add(root); }
private void ToUi() { CodeToVCode codeToVCode = new CodeToVCode(CodeEditor.Text); try { globalScopeControl.VcodeToVblock(codeToVCode.Scope); } catch (Exception ex) { } TreeNode root = null; UpdateTreeView(ref root, codeToVCode.Scope.Items); treeView.Nodes.Clear(); treeView.Nodes.Add(root); }