private void btnThemMoi_Click(object sender, EventArgs e) { try { Arena arena = new Arena(); arena.MaKV = txtMaKV.Text; arena.TenKV = txtKV.Text; arena.TrangThai = "1"; if (KhuVucBUS.Insert(arena)) { XtraMessageBox.Show("Thêm thành công", "THÔNG BÁO ", MessageBoxButtons.OK, MessageBoxIcon.Information); txtMaKV.Text = ""; txtKV.Text = ""; } else { XtraMessageBox.Show("Thêm thất bại", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Information); } frmKhuVuc_Load(sender, e); } catch (Exception) { XtraMessageBox.Show("Thêm thất bại", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Information); } }