Пример #1
0
        void ThreadFunc()
        {
            tbText = this.popTextBox.Text;

            //tbText = SpellCheckClass.CheckSpelling(tbText);
            SpellCheckClass scc = new SpellCheckClass();
            tbText = scc.ZWQK_WordSpellCheck(tbText);

            MessageBox.Show("单词检查完毕.");
        }
Пример #2
0
        private void spellcheckBtn_Click(object sender, EventArgs e)
        {
            #if true
            tbText = this.popTextBox.Text;

            //this.popTextBox.Text = SpellCheckClass.CheckSpelling(tbText);
            SpellCheckClass scc = new SpellCheckClass();
            this.popTextBox.Text = scc.ZWQK_WordSpellCheck(tbText);

            MessageBox.Show("单词检查完毕.");
            this.BringToFront();
            #endif
            this.BringToFront();
            #if nodef
            Thread myThread = new Thread(new ThreadStart(ThreadFunc));
            myThread.Start();

            myThread.Join();
            this.popTextBox.Text = tbText;
            #endif
        }