Beispiel #1
0
 private void ShowListGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     ShowListGridView.Hide();
     BookIDTextBox.Text     = ShowListGridView.CurrentRow.Cells["Book ID"].Value.ToString();
     BookTitleTextBook.Text = ShowListGridView.CurrentRow.Cells["Book Title"].Value.ToString();
     AuthorTextBox.Text     = ShowListGridView.CurrentRow.Cells["Author"].Value.ToString();
     IsbnTextBox.Text       = ShowListGridView.CurrentRow.Cells["ISBN"].Value.ToString();
     QuantityTextBox.Text   = ShowListGridView.CurrentRow.Cells["Quantity"].Value.ToString();
     CategoryComboBox.Text  = ShowListGridView.CurrentRow.Cells["Category"].Value.ToString();
 }
Beispiel #2
0
        private void SearchButton_Click(object sender, EventArgs e)
        {
            object[]      book    = new object[] { BookTitleTextBox.Text };
            MessageResult message = BooksBUS.Instance.CheckDataSearch(book);

            if (message.isSuccess == false)
            {
                MessageBox.Show(message.returnMessage, "Warnning");
                return;
            }
            ShowListGridView.Show();
            ShowListGridView.DataSource = BooksBUS.Instance.SearchBook(book);
        }
Beispiel #3
0
 public SearchBookForm()
 {
     InitializeComponent();
     ShowListGridView.Hide();
 }
Beispiel #4
0
 private void ShowListBookButton_Click(object sender, EventArgs e)
 {
     ShowListGridView.Show();
     ShowListGridView.DataSource = BooksBUS.Instance.LoadListBook();
 }
Beispiel #5
0
 public AddBookForm()
 {
     InitializeComponent();
     ShowListGridView.Hide();
     LoadCategory();
 }