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); }
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); }
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); }