コード例 #1
0
        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);
            }
        }
コード例 #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();
                }
            }
        }