Esempio n. 1
0
 private void button4_Click(object sender, EventArgs e)
 {
     if (SelectBookID > -1)
     {
         frmBookLook fbn = new frmBookLook(SelectBookID);
         fbn.Show();
     }
 }
Esempio n. 2
0
 private void dataGridView3_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1)
     {
         int bookid = int.Parse(dataGridView3.Rows[e.RowIndex].Cells["ColID"].Value.ToString());
         SelectBookID = bookid;
         frmBookLook fbn = new frmBookLook(bookid);
         fbn.Show();
     }
 }
Esempio n. 3
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 + "”预约信息!");
         }
     }
 }