예제 #1
0
 private void InitManagers()
 {
     this._userManager           = new UserManagement(this);
     this._positionManager       = new PositionManagement(this);
     this._departmentManager     = new DepartmentManagement(this);
     this._groupManager          = new GroupManagement(this);
     this._authenticationManager = new AuthenticationManagement(this);
     //this._operationLogManager = new OperationLogManagement(this);
     this._functionManager = new FunctionManagement(this);
 }
예제 #2
0
 void PositionManager_Deleted(PositionManagement sender, DeleteEventArgs <Position> args)
 {
     foreach (Group group in this.GroupManager.Groups)
     {
         if (group.Contains(args.DeleteObject))
         {
             group.RemoveMember(args.Operator, args.DeleteObject);
         }
     }
 }
예제 #3
0
 void PositionManager_Created(PositionManagement sender, Position args)
 {
     this._lock.AcquireWriterLock(0);
     try
     {
         this._memberDicById.Add(args.ID, args);
     }
     finally
     {
         this._lock.ReleaseWriterLock();
     }
 }
예제 #4
0
 void PositionManager_Loaded(PositionManagement sender, List <Position> args)
 {
     this._lock.AcquireWriterLock(0);
     try
     {
         foreach (Position position in args)
         {
             this._memberDicById.Add(position.ID, position);
         }
     }
     finally
     {
         this._lock.ReleaseWriterLock();
     }
 }