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(); }
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); }
public SearchBookForm() { InitializeComponent(); ShowListGridView.Hide(); }
private void ShowListBookButton_Click(object sender, EventArgs e) { ShowListGridView.Show(); ShowListGridView.DataSource = BooksBUS.Instance.LoadListBook(); }
public AddBookForm() { InitializeComponent(); ShowListGridView.Hide(); LoadCategory(); }