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