public void ClearScores() { foreach (TreeNode n in Console2.Nodes) { string s = TrimScore(n.Text); if (s.Length > 0) { Console2.Invoke(new ConsoleReplaceTextDelegate(delegate(TreeNode tn1, string text) { tn1.Text = text; }), new object[] { n, s }); } } }
public void PrintConsole(string line) { /////////////////////////////////////////// LineTest = line; // Invoke(new PrintMessage(PrintRecognized)); Console2.Invoke(new TreeViewUpdateDelegate(delegate(string line1) { Console2.Nodes.Add(line1).EnsureVisible(); }), new object[] { line }); if (checkBox1.Checked) { PerformClickButton1(); } }
public void SetScore(int label, int confidence) { for (int i = 0; i < Console2.Nodes.Count; i++) { string s = TrimScore(Console2.Nodes[i].Text); if (s.Length == 0) { continue; } if ((label--) != 0) { continue; } Console2.Invoke(new ConsoleReplaceTextDelegate(delegate(TreeNode tn1, string text) { tn1.Text = text; }), new object[] { Console2.Nodes[i], Console2.Nodes[i].Text + " [" + confidence + "%]" }); break; } }
public void CleanConsole() { Console2.Invoke(new TreeViewCleanDelegate(delegate { Console2.Nodes.Clear(); })); }
public void PrintConsole(string line) { Console2.Invoke(new TreeViewUpdateDelegate(delegate(string line1) { Console2.Nodes.Add(line1).EnsureVisible(); }), new object[] { line }); }