private void UpdateCustomer(int type, string Id, EntityCustomer entity) { try { svcCustomerClient svc = new svcCustomerClient(); svc.UpdateCustomerCompleted += new EventHandler<UpdateCustomerCompletedEventArgs>(this.UpdateCustomerCompleted); svc.UpdateCustomerAsync(Common.gstrSessionString, type, Id, entity); } catch (Exception ex) { this.ProcessingDlgClose(); ExMessageBox.Show(CLASS_NM + ".UpdateCustomer" + Environment.NewLine + ex.ToString(), "エラー確認"); } }
private void GetCustomer(string id) { try { objCustomer = null; // 初期化 svcCustomerClient svc = new svcCustomerClient(); svc.GetCustomerCompleted += new EventHandler<GetCustomerCompletedEventArgs>(this.GetCustomerCompleted); svc.GetCustomerAsync(Common.gstrSessionString, id); } catch (Exception ex) { this.ProcessingDlgClose(); ExMessageBox.Show(CLASS_NM + ".GetCustomer" + Environment.NewLine + ex.ToString(), "エラー確認"); } }