private void btnSearchBook_Click(object sender, EventArgs e)
        {
            frmSearchBooks frmsb = new frmSearchBooks();

            frmsb.ShowDialog();
            if (frmsb.SelectedBook != null)
            {
                this.txtBookCode.Text = frmsb.SelectedBook.Code.ToString();
                this.txtTitle.Text    = frmsb.SelectedBook.Title;
            }
        }
Example #2
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            frmSearchBooks frmsb = new frmSearchBooks();

            frmsb.ShowDialog();
            if (frmsb.SelectedBook != null)
            {
                txtTitle.Text     = frmsb.SelectedBook.Title;
                txtCode.Text      = frmsb.SelectedBook.Code.ToString();
                txtAuthor.Text    = frmsb.SelectedBook.Author;
                txtPublisher.Text = frmsb.SelectedBook.Publisher;
            }
        }
Example #3
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            frmSearchBooks frmsb = new frmSearchBooks();

            frmsb.ShowDialog();
        }