Ejemplo n.º 1
0
 private void ClientOnBreakRootMapInheritanceCompleted(object sender, BreakRootMapInheritanceCompletedEventArgs e)
 {
     if (e.UserState is Guid)
     {
         var guid = (Guid)e.UserState;
         if (ObjectDictionary.ContainsKey(guid) &&
             BreakRootMapInheritanceCompletedEventHandlers.ContainsKey(guid))
         {
             BreakRootMapInheritanceCompletedEventHandlers[guid](ObjectDictionary[guid], e);
             BreakRootMapInheritanceCompletedEventHandlers.Remove(guid);
             ObjectDictionary.Remove(guid);
         }
     }
 }
        private void BreakRootMapInheritanceCompleted(object sender, BreakRootMapInheritanceCompletedEventArgs e)
        {
            var rootMap = sender as RootMap;

            if (rootMap != null)
            {
                rootMap.IsInherited = false;
                foreach (var groupPair in rootMap.PermissionGroups)
                {
                    foreach (var group in groupPair)
                    {
                        group.IsEnabled = true;
                    }
                }
                PermissionDetails.ApplyEnabled = false;
            }
        }
Ejemplo n.º 3
0
        private void ClientOnBreakRootMapInheritanceCompleted(object sender, BreakRootMapInheritanceCompletedEventArgs e)
        {
            if (e.UserState is Guid)
            {
                var guid = (Guid) e.UserState;
                if (ObjectDictionary.ContainsKey(guid) &&
                    BreakRootMapInheritanceCompletedEventHandlers.ContainsKey(guid))
                {
                    BreakRootMapInheritanceCompletedEventHandlers[guid](ObjectDictionary[guid], e);
                    BreakRootMapInheritanceCompletedEventHandlers.Remove(guid);
                    ObjectDictionary.Remove(guid);

                }
            }
        }