private void BtnDelet_Click(object sender, EventArgs e) { if (BookManage.deleteBook(book.Id) != 0) { MessageBox.Show("删除成功!"); File.Delete(string.Format(baseAddr + "{0}/{1}.jpg", BookManage.getGenreById(book.GenId).Id, book.Isbn)); book = BookManage.getFirstBook()[0]; loadBook(book); } else { MessageBox.Show("删除失败!"); } }
public frmManageBook() { InitializeComponent(); book = BookManage.getFirstBook()[0]; loadBook(book); }