コード例 #1
0
 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 });
         }
     }
 }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
 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;
     }
 }
コード例 #4
0
 public void CleanConsole()
 {
     Console2.Invoke(new TreeViewCleanDelegate(delegate { Console2.Nodes.Clear(); }));
 }
コード例 #5
0
 public void PrintConsole(string line)
 {
     Console2.Invoke(new TreeViewUpdateDelegate(delegate(string line1) { Console2.Nodes.Add(line1).EnsureVisible(); }), new object[] { line });
 }