Beispiel #1
0
        public void addCallerAndCalleesToGraphNode(WPF.Control graphNode, string methodSignature)
        {
            if (graphNode != null && methodSignature.valid())
            {
                if (ExpandMethodsCalled)
                {
                    if (this.MethodsCalledMappings.hasKey(methodSignature))
                    {
                        foreach (var methodCalled in this.MethodsCalledMappings[methodSignature])
                        {
                            //if (GraphNodes.hasKey(methodCalled).isFalse())
                            GraphViewer.add_Edge(graphNode, createGraphNode(methodCalled));
                        }
                    }
                }
                if (ExpandMethodIsCalledBy)
                {
                    if (MethodIsCalledByMappings.hasKey(methodSignature))
                    {
                        foreach (var methodIsCalledBy in this.MethodIsCalledByMappings[methodSignature])
                        {
                            //if (GraphNodes.hasKey(methodIsCalledBy).isFalse())
                            GraphViewer.add_Edge(createGraphNode(methodIsCalledBy), graphNode);
                        }
                    }
                }

                WPF_Controls_ExtensionMethods_Control.color(graphNode, "Green");
            }
        }