예제 #1
0
 private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Enter)
     {
         if (ClsBLL.CarBookRecord(textBox1.Text))
         {
             frmBookLook fbn = new frmBookLook(textBox1.Text);
             fbn.Show();
         }
         else
         {
             MessageBox.Show("没有车牌号为“" + textBox1.Text + "”预约信息!");
         }
     }
 }