public MyShapeViewModel(IFileToLoad FileToLoad)
        {
            Polygons = new Collection <LocationCollection>();

            using (Shapefile shapefile = new Shapefile(FileToLoad.FileName))
            {
                foreach (Shape s in shapefile)
                {
                    var mapPloygon = Helper.ConvertShapePolygonToMapPolygon(s);
                    foreach (MapPolygon m in mapPloygon)
                    {
                        Polygons.Add(m.Locations);
                    }
                }
            }
        }
 public ShapeFileModule(IUnityContainer container, IRegionManager regionManager, IFileToLoad filetoLoad)//IFileToLoad filetoLoad)
 {
     _regionManager = regionManager;
     _container     = container;
     _filetoLoad    = filetoLoad;
 }
 public ViewMyShape(IFileToLoad FileToLoad)
 {
     InitializeComponent();
     DataContext = new MyShapeViewModel(FileToLoad);
 }