private void btnUpdate_Click(object sender, EventArgs e) { bool status; id = tbxID.Text; name = tbxName.Text; originalVoiceActor = tbxVoiceActor.Text; animatedDebut = tbxDebut.Text; status = CRUD.updateDocument(id, name, originalVoiceActor, animatedDebut); if (status == true) { MessageBox.Show("Cập nhật dữ liệu thành công!"); } else { MessageBox.Show("Thao tác sai! Dữ liệu không tồn tại"); } }
private void btnUpdate_Click(object sender, EventArgs e) { bool status; id = tbxID.Text; name = tbxName.Text; originalVoiceActor = tbxVoiceActor.Text; animatedDebut = tbxDebut.Text; status = CRUD.updateDocument(id, name, originalVoiceActor, animatedDebut); if (status == true) { MessageBox.Show("Document Updated Successfully"); } else { MessageBox.Show("Error! Occured During Document Update!"); } }
private void btnUpdate_Click(object sender, EventArgs e) { bool status; id = tbxID.Text; firstname = tbxName.Text; lastname = tbxVoiceActor.Text; city = tbxDebut.Text; status = CRUD.updateDocument(id, firstname, lastname, city); if (status == true) { MessageBox.Show("Document Updated Successfully"); } else { MessageBox.Show("Error! Occured During Document Update!"); } }