private void btnXoaPhongDat_Click(object sender, EventArgs e) { if (txbID.Text == "") { MessageBox.Show("Bạn cần nhập ID đặt phòng để xóa phòng đặt", "Xóa phòng đặt", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } int idDatPhong = Convert.ToInt32(txbID.Text); if (phong.XoaPhongDatTrongTableDSPhongDaDat(idDatPhong)) { MessageBox.Show("Đã xóa phòng theo ID đặt phòng bạn muốn", "Xóa phòng đặt", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("ID đặt phòng bạn nhập không tồn tại", "Xóa phòng đặt", MessageBoxButtons.OK, MessageBoxIcon.Error); } }