private void btnDelete_Click(object sender, EventArgs e)
        {
            bool status;

            documentID = tbxID.Text;

            status = CRUD.deleteDocument(documentID);

            if (status == true)
            {
                MessageBox.Show("Document Deleted Successfully");
            }
            else
            {
                MessageBox.Show("Error Occured During Document Delete!");
            }
        }
Example #2
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            bool status;

            documentID = tbxID.Text;

            status = CRUD.deleteDocument(documentID);

            if (status == true)
            {
                MessageBox.Show("Xóa dữ liệu thành công");
            }
            else
            {
                MessageBox.Show("Thao tác sai!Dữ liệu không tồn tại!");
            }
        }