Esempio n. 1
0
 public static ascx_TraceTreeView animate(this ascx_TraceTreeView traceViewer, int delay)
 {
     foreach (var node in traceViewer.nodes())
     {
         node.selected();
         traceViewer.focus();
         traceViewer.sleep(delay, false);
     }
     return(traceViewer);
 }
Esempio n. 2
0
 public static ascx_TraceTreeView selectNodeWithText(this ascx_TraceTreeView traceViewer, string textToMatch)
 {
     textToMatch = textToMatch.trim();
     foreach (var node in traceViewer.nodes())
     {
         if (node.get_Text().trim() == textToMatch)
         {
             node.selected();
             break;
         }
     }
     return(traceViewer);
 }
Esempio n. 3
0
 public static TreeNode firstNodeWithSourceCodeReference(this ascx_TraceTreeView traceViewer)
 {
     foreach (var node in traceViewer.nodes())
     {
         if (node.Tag.notNull() && node.Tag is IO2Trace)
         {
             if ((node.Tag as IO2Trace).file.valid())
             {
                 return(node);
             }
         }
     }
     return(null);
 }