コード例 #1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            LendBook lb = (LendBook)this.Owner;

            lb.cboMemberID.Text   = dataGridViewShowMembers.CurrentRow.Cells[0].Value.ToString();
            lb.txtMemberName.Text = dataGridViewShowMembers.CurrentRow.Cells[1].Value.ToString();
            lb.lblBookLent.Text   = dataGridViewShowMembers.CurrentRow.Cells[4].Value.ToString();
            this.Close();
        }
コード例 #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            Book     b  = new Book();
            LendBook lb = (LendBook)this.Owner;

            lb.cboISBN.Text  = dataGridViewShowBooks.CurrentRow.Cells[0].Value.ToString();
            lb.txtTitle.Text = dataGridViewShowBooks.CurrentRow.Cells[1].Value.ToString();
            string totalQty    = dataGridViewShowBooks.CurrentRow.Cells[3].Value.ToString();
            string totalOnLoan = dataGridViewShowBooks.CurrentRow.Cells[4].Value.ToString();
            int    remained    = Convert.ToInt32(totalQty) - Convert.ToInt32(totalOnLoan);

            lb.lblBookRemained.Text = remained.ToString();
            this.Close();
        }
コード例 #3
0
ファイル: Search.cs プロジェクト: boyka5945/SA45Team3a_LMS
 public Search()
 {
     bro     = new LendBook();
     context = new Entities();
     InitializeComponent();
 }
コード例 #4
0
        private void button6_Click(object sender, EventArgs e)
        {
            LendBook lb = new LendBook();

            lb.Show();
        }