Пример #1
0
        private void DrawCity()
        {
            if (_cityData == null)
            {
                return;
            }

            int i = 0;

            if (_cityData.Bounds != null)
            {
                //_drawService.DrawRectangle(_cityData.Bounds, Colors.Red);
            }

            //Draw districts
            foreach (var district in _cityData.Districts)
            {
                var c = _districtColors[i];
                _drawService.DrawDistrict(district, c, DrawRoads.Value, DrawDistricts.Value);
                i++;
            }
        }