Пример #1
0
        private void InitialServices(Entity.Map map)
        {
            this.MapItemsService          = new Repository.MapItemService(map);
            this.GoodsService             = new Repository.GoodsService(map);
            this.ZonesService             = new Repository.ZonesService(map);
            this.TypesService             = new Repository.TypesService(map);
            this.SpecialConnectionService = new Repository.SpecialConnectionService(map);
            this.CargoWaysService         = new Repository.CargoWaysService(map);
            this.CargoWaysLockService     = new Repository.CargoWaysLockService(map);
            this.RailsService             = new Repository.RailsService(map);

            this.MapLogicsService = new MapLogicsService(map);
            //this.MapAlgorithmService = new MapAlgorithmService(map);
        }
Пример #2
0
        private void ResetServices()
        {
            this.MapDictionaryService     = null;
            this.MapItemsService          = null;
            this.TypesService             = null;
            this.ZonesService             = null;
            this.GoodsService             = null;
            this.SpecialConnectionService = null;
            this.CargoWaysService         = null;
            this.CargoWaysLockService     = null;
            this.RailsService             = null;

            this.MapLogicsService = null;
            //this.MapAlgorithmService = null;
        }