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;
            }
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 3
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            frmSearchBooks frmsb = new frmSearchBooks();

            frmsb.ShowDialog();
        }