private void button1_Click(object sender, EventArgs e)
        {
            加载窗口 form = new 加载窗口();

            form.Show();
            string TitleName = this.TitleBox.Text;

            string[] result = search_title.SearchTitle(TitleName);
            if (result != null)
            {
                SearchByIndex_xml content_title = new SearchByIndex_xml();
                content_title.getInfomation(result, "D:\\dataxml\\dblp_index.xml", "D:\\dataxml\\result\\result_title.txt");
                System.Diagnostics.Process.Start("D:\\dataxml\\result\\result_title.txt");

                result = null;
            }
            else
            {
                Console.WriteLine();
                错误窗口 form1 = new 错误窗口();
                form1.Show();
            }


            form.Close();
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            string AuthorName = this.textBox1.Text;

            string[] result = search.SearchAuthor(AuthorName, 0);
            if (result != null)
            {
                SearchByIndex_xml content = new SearchByIndex_xml();
                content.Author_Partnership(result, "D:\\dataxml\\dblp_index.xml", "D:\\dataxml\\result\\ " + AuthorName + "'s partnership.txt");
                System.Diagnostics.Process.Start("D:\\dataxml\\result\\ " + AuthorName + "'s partnership.txt");
                result = null;
            }
            else
            {
                错误窗口 form2 = new 错误窗口();
                form2.Show();
            }
        }
Example #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            string AuthorName = this.textBox1.Text;

            string[] result = search.SearchAuthor(AuthorName, 0);
            if (result != null)
            {
                加载窗口 form = new 加载窗口();
                form.Show();
                SearchByIndex_xml content = new SearchByIndex_xml();
                content.getInfomation(result, "D:\\dataxml\\dblp_index.xml", "D:\\dataxml\\result\\result_" + AuthorName + ".txt");
                System.Diagnostics.Process.Start("D:\\dataxml\\result\\result_" + AuthorName + ".txt");
                //search.DeleteAuthorBTreeLines();
                result = null;
                form.Close();
            }
            else
            {
                错误窗口 form2 = new 错误窗口();
                form2.Show();
            }
        }