private void bt_DoubleClick(object sender, EventArgs e) { DoubleClickButton bt = (DoubleClickButton)((Control)sender); frmBookLook fbn = new frmBookLook(int.Parse(bt.Name)); fbn.ShowDialog(); }
private void button4_Click(object sender, EventArgs e) { if (SelectBookID > -1) { frmBookLook fbn = new frmBookLook(SelectBookID); fbn.Show(); } }
private void button1_Click(object sender, EventArgs e) { if (BookID > -1) { frmBookLook fbn = new frmBookLook(BookID); fbn.ShowDialog(); } }
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(); } }
private void bt_DoubleClick(object sender, EventArgs e) { if (!ClsBLL.IsPower("查看维修信息")) { MessageBox.Show("你没有权限查看维修信息!"); return; } DoubleClickButton bt = (DoubleClickButton)((Control)sender); frmBookLook fbn = new frmBookLook(int.Parse(bt.Name)); fbn.ShowDialog(); }
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 + "”预约信息!"); } } }