public BatchSaveCollapseStatesOperation(Proxy.IMapManager mapManager, PermissionLevel group)
     : base(mapManager)
 {
     if (group < PermissionLevel.Author)
     {
         _visibilityKey = "Visibility";
         _collapseStateKey = "CollapseState";
     }
     else
     {
         _visibilityKey = "AuthorVisibility";
         _collapseStateKey = "AuthorCollapseState";
     }
 }
Exemplo n.º 2
0
 private void OnPermissionChanged(PermissionGroup changedItem, PermissionLevel permissionLevel)
 {
     if (PermissionChanged != null)
     {
         var args = new PermissionValueChangedEventArgs { ChangedItem = changedItem, PermissionLevel = permissionLevel };
         PermissionChanged(this, args);
     }
 }
Exemplo n.º 3
0
 public PermissionGroupCollection GetPermissionGroup(PermissionLevel permissionLevel)
 {
     switch (permissionLevel.ToString())
     {
         case PermissionLevel.AuthorRoleName:
             return Gma;
         case PermissionLevel.ReaderRoleName:
             return Gmr;
         case PermissionLevel.ProjectManagerRoleName:
             return Gpm;
         case PermissionLevel.MapManagerRoleName:
             return Gmm;
         default:
             return null;
     }
 }
Exemplo n.º 4
0
 private bool Equals(PermissionLevel other)
 {
     return(string.Equals(_name, other._name) && _value == other._value);
 }
Exemplo n.º 5
0
 public static bool IsOldPermission(PermissionLevel value)
 {
     return(value == OldAuthor || value == OldReader);
 }
Exemplo n.º 6
0
 private bool Equals(PermissionLevel other)
 {
     return string.Equals(_name, other._name) && _value == other._value;
 }
Exemplo n.º 7
0
 public static bool IsOldPermission(PermissionLevel value)
 {
     return value == OldAuthor || value == OldReader;
 }