コード例 #1
0
 private void btnXoaThamGia_Click(object sender, EventArgs e)
 {
     try
     {
         if (bookId != 0 && authorId != 0)
         {
             client.deleteAttend(bookId, authorId);
             resetform();
             MessageBox.Show("Xóa dữ liệu thành công!", "Chúc mừng", MessageBoxButtons.OK);
         }
     }
     catch (Exception)
     {
         MessageBox.Show("Xóa thất bại", "Lỗi", MessageBoxButtons.OK);
     }
 }