예제 #1
0
        public theWord[] start(string allWords1)
        {
            ServiceReference2.WebService1SoapClient myWebService = new ServiceReference2.WebService1SoapClient("WebService1Soap");
            string allWords2 = myWebService.removeNonWords(allWords1);

            theWord[] theWords1 = getTheSort1(allWords2);
            theWord[] theWords2 = getTheSort2(theWords1);
            return(theWords2);
        }
예제 #2
0
파일: Form1.cs 프로젝트: 2018302110/simple
        //自定义添加按钮
        private void button2_Click(object sender, EventArgs e)
        {
            //用户输入的自定义词
            string customWord = textBox5.Text;

            //用户输入的初始文本
            string allWords1 = textBox1.Text;
            //返回去除非汉字的文本
            string allWords2 = myWebService.removeNonWords(allWords1);

            //得出自定义词数量,更新输出词组
            customWord[] customWords = custom.countWord(customWord, allWords2, theWordsNum, theWordsWord);
            //将词语按照数量由多到少排序
            customWords = custom.getTheSort2(customWords);

            //在自定义page上显示结果
            textBox6.Text = showResult.wordResult(customWords);
            textBox7.Text = showResult.numResult1(customWords);
            textBox8.Text = showResult.numResult2(customWords);
        }