コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: frmNotif.cs プロジェクト: abarajithan11/alexandria
        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();
                }
            }
        }
コード例 #3
0
 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();
     }
 }