public BatchSaveCollapseStatesOperation(Proxy.IMapManager mapManager, PermissionLevel group)
     : base(mapManager)
 {
     if (group < PermissionLevel.Author)
     {
         _visibilityKey = "Visibility";
         _collapseStateKey = "CollapseState";
     }
     else
     {
         _visibilityKey = "AuthorVisibility";
         _collapseStateKey = "AuthorCollapseState";
     }
 }
예제 #2
0
 private void OnPermissionChanged(PermissionGroup changedItem, PermissionLevel permissionLevel)
 {
     if (PermissionChanged != null)
     {
         var args = new PermissionValueChangedEventArgs { ChangedItem = changedItem, PermissionLevel = permissionLevel };
         PermissionChanged(this, args);
     }
 }
예제 #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;
     }
 }
예제 #4
0
 private bool Equals(PermissionLevel other)
 {
     return(string.Equals(_name, other._name) && _value == other._value);
 }
예제 #5
0
 public static bool IsOldPermission(PermissionLevel value)
 {
     return(value == OldAuthor || value == OldReader);
 }
예제 #6
0
 private bool Equals(PermissionLevel other)
 {
     return string.Equals(_name, other._name) && _value == other._value;
 }
예제 #7
0
 public static bool IsOldPermission(PermissionLevel value)
 {
     return value == OldAuthor || value == OldReader;
 }