public WPF.Control createGraphNode(string methodSignature) { if (GraphNodes.hasKey(methodSignature)) { return(GraphNodes[methodSignature]); } var graphNode = GraphViewer.newInThread <WPF.Label>(); var iMethod = AstData.iMethod_withSignature(methodSignature); if (iMethod != null) { //this.GraphModeRightPanels[0].clear(); //GraphViewer = this.GraphModeRightPanels[0].add_Graph(); graphNode.set_Content(iMethod.Name); //graphNode.set_Tag(iMethod); WPF_Controls_ExtensionMethods_Control.color(graphNode, "Black"); // direct call throws compile error -> graphNode.color("Black"); } else { WPF_Controls_ExtensionMethods_Control.color(graphNode, "Red"); graphNode.set_Content(methodSignature); } if (UseStarAsNodeText) { graphNode.set_Content("*"); } graphNode.set_Tag(methodSignature); graphNode.onMouseDoubleClick <string, WPF.Label>( (signature) => { addCallerAndCalleesToGraphNode(graphNode, signature); }); GraphNodes.add(methodSignature, graphNode); return(graphNode); }