private void UpdateAuthority(ObservableCollection<EntityAuthority> entity, int user_id) { try { svcAuthorityClient svc = new svcAuthorityClient(); svc.UpdateAuthorityCompleted += new EventHandler<UpdateAuthorityCompletedEventArgs>(this.UpdateAuthorityCompleted); svc.UpdateAuthorityAsync(Common.gstrSessionString, entity, user_id); } catch (Exception ex) { this.ProcessingDlgClose(); ExMessageBox.Show(CLASS_NM + ".UpdateAuthority" + Environment.NewLine + ex.ToString(), "エラー確認"); } }
private void GetAuthority(int user_id) { try { objAuthority = null; // 初期化 svcAuthorityClient svc = new svcAuthorityClient(); svc.GetAuthorityCompleted += new EventHandler<GetAuthorityCompletedEventArgs>(this.GetAuthorityCompleted); svc.GetAuthorityAsync(Common.gstrSessionString, user_id); } catch (Exception ex) { this.ProcessingDlgClose(); ExMessageBox.Show(CLASS_NM + ".GetAuthority" + Environment.NewLine + ex.ToString(), "エラー確認"); } }