private void btnThayDoi_Click(object sender, EventArgs e) { try { QuyDinh quyDinh = new QuyDinh(int.Parse(txtSoXe.Text)); if (!string.IsNullOrEmpty(txtSoXe.Text)) { QuyDinhBLL.ThayDoiQuyDinh(quyDinh); txtSoXeSuaChuaToiDa.Text = QuyDinhBLL.GetQuyDinh().SoXeSuaChuaToiDa.ToString(); txtSoXe.Clear(); MessageBox.Show("Số xe sửa chữa tối đa trong ngày đã được thay đổi thành " + txtSoXe.Text, "Thông báo", MessageBoxButtons.OK); } else { MessageBox.Show("Vui lòng nhập số lượng xe", "Thông báo", MessageBoxButtons.OK); } } catch (Exception ex) { MessageBox.Show("Vui lòng nhập số lượng", "Thông báo", MessageBoxButtons.OK); } }