private void The_btnLuu_Click(object sender, EventArgs e) { if (ValidateForm(KieuBaoSuCo.VeThe)) { GetData(KieuBaoSuCo.VeThe); if (!G_KiemSoatLienLac.Insert_Update_V3()) { lblMsg.Text = "Lỗi lưu thông tin.Bạn cần liên hệ với quản trị hệ thống."; lblMsg.Visible = true; return; } else { if (!KiemSoatXeLienLac.InsertUpdateXeDangHoatDong(G_KiemSoatLienLac.SoHieuXe, G_KiemSoatLienLac.ThoiDiemBao, G_KiemSoatLienLac.IsHoatDong)) { lblMsg.Text = "Lỗi lưu thông tin xe hoạt động.Bạn cần liên hệ với quản trị hệ thống."; lblMsg.Visible = true; return; } else { lblMsg.Text = ""; } RefreshForm(); MessageBox.Show("Lưu thông tin thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } } }