Beispiel #1
0
 public WPF.Label unexpandedNode()
 {
     foreach (var node in GraphViewer.nodes())
     {
         if (node is WPF.Label)
         {
             var label = (node as WPF.Label);
             if (label.get_Color() != Media.Brushes.Green)
             {
                 return(label);
             }
         }
     }
     return(null);
 }
Beispiel #2
0
 public void graphAllMethods()
 {
     O2Thread.mtaThread(
         () => {
         var maxNodeSize = 300;
         foreach (var methodSignature in AllMethods)
         {
             addGraphNode(methodSignature);
             if (maxNodeSize < GraphViewer.nodes().size())
             {
                 "in graphAutoExpandAllMethods, maxNode size reached: {0}".error(maxNodeSize);
                 break;
             }
         }
         "graphAllMethods completed".info();
     });
 }
Beispiel #3
0
 public void graphAutoExpandAllMethods()
 {
     O2Thread.mtaThread(
         () => {
         var maxNodeSize  = 300;
         var nodeToExpand = this.unexpandedNode();
         while (maxNodeSize > GraphViewer.nodes().size() && nodeToExpand != null)
         {
             addCallerAndCalleesToGraphNode(nodeToExpand);
             "after expand, there are: {0} nodes".info(GraphViewer.nodes().size());
             nodeToExpand = unexpandedNode();
         }
         if (maxNodeSize < GraphViewer.nodes().size())
         {
             "in graphAutoExpandAllMethods, maxNode size reached: {0}".error(maxNodeSize);
         }
         "graphAutoExpandAllMethods completed".info();
     });
 }