Ejemplo n.º 1
0
        public void createAndAddGraphNode(string methodSignature)
        {
            O2Thread.mtaThread(
                () => {
                "in createAndAddGraphNode".debug();
                "Creating Graph for: {0}".debug(methodSignature);
                if (ClearGraphOnMethodView)
                {
                    GraphNodes = new Dictionary <string, WPF.Control>();

                    this.GraphModeRightPanels[0].clear();
                    GraphViewer = this.GraphModeRightPanels[0].add_Graph();
                    GraphViewer.tree();
                }


                GraphScript.InvocationParameters.Clear();
                GraphScript.InvocationParameters.add("graph", GraphViewer);
                GraphScript.InvocationParameters.add("astData", AstData);

                addGraphNode(methodSignature);

                /*var graphNode = createGraphNode(methodSignature);
                 *
                 * this.GraphViewer.add_Node(graphNode);
                 * addCallerAndCalleesToGraphNode(graphNode, methodSignature);*/
                //expandGraph();
            });
        }