public override void RelocateRegion(GridVector location)
        {
            RegionInfo ri = GetRegionInfo();

            ri.Location = location;
            GridService.RegisterRegion(ri);
            GridPosition = location;
            RegionStorage?.RegisterRegion(ri);
        }
        public override void ReregisterRegion()
        {
            RegionInfo ri = GetRegionInfo();

            GridService.RegisterRegion(ri);
            RegionStorage?.RegisterRegion(ri, true);
            foreach (IAgent agent in Agents)
            {
                var viewerAgent = agent as ViewerAgent;
                if (viewerAgent != null)
                {
                    SendRegionInfo(viewerAgent);
                }
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="adUser">Хранилище пользователей AD</param>
 /// <param name="region">Хранилище регионов</param>
 public ADUsersController(IADUser adUser, IRegion region)
 {
     _ADUserStorage = new ADUserStorage(adUser);
     _RegionStorage = new RegionStorage(region);
 }