private void ParseShapefileBeds()
        {
            if (this.ShapeFileBeds.Count == 0)
            {
                return;
            }

            var beds = new HospitalElementList();

            foreach (ShapefileRecord record in this.ShapeFileBeds)
            {
                var id     = record.Fields["ID"].ToString();
                var points = this.MapProjector.ProjectToGeographic(record.Points);
                beds.Add(new HospitalElement(id, points));
            }

            if (this.ViewModel != null)
            {
                ViewModel.RegisterElements(beds);

                var series = this.geoMap.Series["HosptialBedSeries"] as GeographicShapeControlSeries;
                if (series != null)
                {
                    series.ItemsSource = this.ViewModel.MapElements;
                }
            }
        }
        private void ParseShapefileRooms()
        {
            if (this.ShapeFileRooms.Count == 0)
            {
                return;
            }
            var elements = new HospitalElementList();

            foreach (ShapefileRecord record in this.ShapeFileRooms)
            {
                var id     = record.Fields["ID"].ToString();
                var points = this.MapProjector.ProjectToGeographic(record.Points);
                elements.Add(new HospitalElement(id, points));
            }

            var series = this.geoMap.Series["HosptialRoomSeries"] as GeographicShapeControlSeries;

            if (series != null)
            {
                series.ItemsSource = elements;
            }
        }