예제 #1
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();
     }
 }
예제 #2
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();
        }
예제 #3
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);
            }
        }
예제 #4
0
        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();
                }
            }
        }
예제 #5
0
 private void bookDetailsToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     frmBookDetail f = new frmBookDetail(); f.Show();
 }
예제 #6
0
 private void Reset()
 {
     this.Close(); frmBookDetail f = new frmBookDetail(); f.Show();
 }