private void 添加图书_4_Click(object sender, EventArgs e) { if (SetTextToBook()) { bookBLL.Insert(new_book); MessageBox.Show("状态:添加成功!"); } BookCatalogUpdate(treeView2); Clear_4(); }
private void btnBookAdd_Click(object sender, EventArgs e) { SetTextToBook(); bookBLL.Insert(book); labAddInformation.Text = "添加状态:已添加!"; }