Example #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            //选择文章里的词点击查词之后
            var a = new ShowWordForm(MainWin, new Word(this.richTextBox1.SelectedText));

            a.ShowDialog();
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            //打开查询单词的窗口
            string searchWord = richTextBox1.Text;
            var    a          = new ShowWordForm(this, new Word(searchWord));

            a.ShowDialog();
        }