private void UpdateCompany(int type, EntityCompany entity) { try { svcCompanyClient svc = new svcCompanyClient(); svc.UpdateCompanyCompleted += new EventHandler<UpdateCompanyCompletedEventArgs>(this.UpdateCompanyCompleted); svc.UpdateCompanyAsync(Common.gstrSessionString, type, entity); } catch (Exception ex) { this.ProcessingDlgClose(); ExMessageBox.Show(CLASS_NM + ".UpdateCompany" + Environment.NewLine + ex.ToString(), "エラー確認"); } }
private void GetCompany() { try { objCompany = null; // 初期化 svcCompanyClient svc = new svcCompanyClient(); svc.GetCompanyCompleted += new EventHandler<GetCompanyCompletedEventArgs>(this.GetCompanyCompleted); svc.GetCompanyAsync(Common.gstrSessionString); } catch (Exception ex) { this.ProcessingDlgClose(); ExMessageBox.Show(CLASS_NM + ".GetCompany" + Environment.NewLine + ex.ToString(), "エラー確認"); } }