private void lboxBookID_SelectedIndexChanged(object sender, EventArgs e) { if (lboxBookID.SelectedItems.Count != 0) { frmBookDetail b = new frmBookDetail(); b.txtBookID.Text = lboxBookID.Items[lboxBookID.SelectedIndex].ToString(); b.btnGetBook_Click(sender, e); b.ShowDialog(); } }
private void lboxTitle_DoubleClick(object sender, EventArgs e) { frmBookDetail f = new frmBookDetail(); f.txtBookID.Text = lboxBookID.Items[lboxTitle.SelectedIndex].ToString(); f.btnGetBook_Click(sender, e); f.ShowDialog(); }
private void lboxTitlePop_DoubleClick(object sender, EventArgs e) { if (lboxTitlePop.SelectedItems.Count == 1) { int i = lboxTitlePop.SelectedIndex; frmBookDetail f = new frmBookDetail(); f.FillTitleInfo(Title[i]); f.txtTitleID.Text = Title[i]; f.btnGetTitle_Click(sender, e); } }
private void dtResults_CellClick(object sender, DataGridViewCellEventArgs e) { if (dtResults.SelectedCells.Count != 0) { string NowValue = dtResults.CurrentCell.Value.ToString(); int NowCol = dtResults.SelectedCells[0].ColumnIndex; string NowBook = dtResults.Rows[dtResults.CurrentCell.RowIndex].Cells[7].Value.ToString(); frmBookDetail b = new frmBookDetail(); frmMemDetails m = new frmMemDetails(); if (NowCol == 4) { m.txtMemID.Text = NowValue; m.ShowDialog(); } else if (NowCol == 6) { b.txtTitleID.Text = NowValue; b.btnGetTitle_Click(sender, e); b.ShowDialog(); } else if (NowCol == 7 || NowCol == 2) { b.txtBookID.Text = NowBook; b.btnGetBook_Click(sender, e); b.ShowDialog(); } } }
private void bookDetailsToolStripMenuItem_Click_1(object sender, EventArgs e) { frmBookDetail f = new frmBookDetail(); f.Show(); }
private void Reset() { this.Close(); frmBookDetail f = new frmBookDetail(); f.Show(); }