private void buttonOK_Click(object sender, EventArgs e) { UseWaitCursor = true; Application.DoEvents(); try { if (reviewOptionApprove == null) reviewOptionApprove = new ReviewOptionApprove(); GetEntity(reviewOptionApprove); Company company = new Company { CompanyName = Party.Text, CompanyAddress = PartyAddress.Text, JuridicalPerson = LegalRepre.Text, Mobile = Tel.Text }; InvokeUtil.SystemService.UpdateCompanyByName(company); InvokeUtil.SystemService.EntityUpdate(reviewOptionApprove); CloseWindow(); } catch (Exception ex) { CommonInvoke.ErrorMessageBox(ex); } UseWaitCursor = false; }
public frmReviewOptionApprove(ReviewOptionApprove reviewOptionApprove) : this() { this.reviewOptionApprove = reviewOptionApprove; }