Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }