private void UpdateUser(int type, long Id, EntityUser entity) { try { svcUserClient svc = new svcUserClient(); svc.UpdateUserCompleted += new EventHandler<UpdateUserCompletedEventArgs>(this.UpdateUserCompleted); svc.UpdateUserAsync(Common.gstrSessionString, type, Id, entity); } catch (Exception ex) { this.ProcessingDlgClose(); ExMessageBox.Show(CLASS_NM + ".UpdateUser" + Environment.NewLine + ex.ToString(), "エラー確認"); } }
private void GetUser(int id) { try { objUser = null; // 初期化 svcUserClient svc = new svcUserClient(); svc.GetUserCompleted += new EventHandler<GetUserCompletedEventArgs>(this.GetUserCompleted); svc.GetUserAsync(Common.gstrSessionString, id); } catch (Exception ex) { this.ProcessingDlgClose(); ExMessageBox.Show(CLASS_NM + ".GetUser" + Environment.NewLine + ex.ToString(), "エラー確認"); } }