Exemplo n.º 1
0
        private void button_BookManage_Click(object sender, EventArgs e)
        {
            SearchType = "all";
            frm_SearchResult frm = new frm_SearchResult();

            frm.Show();
            this.Close();
        }
Exemplo n.º 2
0
 private void textBox_SearchInfo_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == 13 && (comboBox_BookType.Text == "书名" || comboBox_BookType.Text == "作者") && textBox_SearchInfo.Text == "")
     {
         MessageBox.Show("请输入搜索关键字!");
     }
     else if (e.KeyChar == 13 && comboBox_BookType.Text != String.Empty)
     {
         SearchInfo = textBox_SearchInfo.Text;
         SearchType = comboBox_BookType.Text;
         frm_SearchResult frm = new frm_SearchResult();
         frm.Show();
         this.Close();
     }
 }
Exemplo n.º 3
0
 private void button_Search_Click(object sender, EventArgs e)
 {
     if ((comboBox_BookType.Text == "书名" || comboBox_BookType.Text == "作者") && textBox_SearchInfo.Text == "")
     {
         MessageBox.Show("请输入搜索关键字!");
     }
     else
     {
         SearchInfo = textBox_SearchInfo.Text;
         SearchType = comboBox_BookType.Text;
         frm_SearchResult frm = new frm_SearchResult();
         frm.Show();
         this.Close();
     }
 }
Exemplo n.º 4
0
 private void comboBox_BookType_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (comboBox_BookType.SelectedIndex == 3)
     {
         SearchType = "all";
         SearchInfo = "";
         frm_SearchResult frm = new frm_SearchResult();
         frm.Show();
         this.Close();
     }
     else if (comboBox_BookType.SelectedIndex == 2)
     {
         SearchType = "类型";
         frm_SearchResult frm = new frm_SearchResult();
         frm.Show();
         this.Close();
     }
 }