//Hiennv private void txtTaxNumberCode_Leave(object sender, EventArgs e) { try { CompaniesBO aCompaniesBO = new CompaniesBO(); Companies aCompanies = aCompaniesBO.Select_ByID(this.aPaymentHallsEN.IDCompany); if (aCompanies != null) { aCompanies.TaxNumberCode = txtTaxNumberCode.Text; aCompaniesBO.Update(aCompanies); } } catch (Exception ex) { MessageBox.Show("frmTsk_PaymentHall.txtTaxNumberCode_Leave\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }