private void UpdateCompleted(object sender, UpdateSecurityAssociationsCompletedEventArgs e)
 {
     if (!e.Result.HasError)
     {
         UpdateSuccessful();
     }
     else
     {
         SuperMessageBoxService.ShowError("Error Occurred",
                                          "An error occurred while applying the Glyma permissions.");
     }
 }
示例#2
0
 private void ClientOnUpdateSecurityAssociationsCompleted(object sender, UpdateSecurityAssociationsCompletedEventArgs e)
 {
     if (e.UserState is Guid)
     {
         var guid = (Guid)e.UserState;
         if (ObjectDictionary.ContainsKey(guid) &&
             UpdateSecurityAssociationsCompletedEventHandlers.ContainsKey(guid))
         {
             UpdateSecurityAssociationsCompletedEventHandlers[guid](ObjectDictionary[guid], e);
             UpdateSecurityAssociationsCompletedEventHandlers.Remove(guid);
             ObjectDictionary.Remove(guid);
         }
     }
 }
示例#3
0
 private void ClientOnUpdateSecurityAssociationsCompleted(object sender, UpdateSecurityAssociationsCompletedEventArgs e)
 {
     if (e.UserState is Guid)
     {
         var guid = (Guid) e.UserState;
         if (ObjectDictionary.ContainsKey(guid) &&
             UpdateSecurityAssociationsCompletedEventHandlers.ContainsKey(guid))
         {
             UpdateSecurityAssociationsCompletedEventHandlers[guid](ObjectDictionary[guid], e);
             UpdateSecurityAssociationsCompletedEventHandlers.Remove(guid);
             ObjectDictionary.Remove(guid);
         }
     }
 }