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);
 }
 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);
         }
     }
 }
 void PositionManager_Created(PositionManagement sender, Position args)
 {
     this._lock.AcquireWriterLock(0);
     try
     {
         this._memberDicById.Add(args.ID, args);
     }
     finally
     {
         this._lock.ReleaseWriterLock();
     }
 }
 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();
     }
 }