protected override void OnStartup (StartupEventArgs e) { base.OnStartup (e); GalleryWindow galleryWindow = new GalleryWindow(); //galleryWindow.Show (); galleryWindow.mapGallery = (MapCollection) (this.Resources["Maps"] as ObjectDataProvider).Data; galleryWindow.mapGallery.Path = data.GetLocalDataPath () + "\\GlobeImages"; //bind to ArcGIS Engine installation ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Engine); if (!InitializeEngineLicense()) { MessageBox.Show("ArcGIS Engine License or Globe Extension could not be initialized. Closing..."); galleryWindow.Close(); } }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); GalleryWindow galleryWindow = new GalleryWindow(); //galleryWindow.Show (); galleryWindow.mapGallery = (MapCollection)(this.Resources["Maps"] as ObjectDataProvider).Data; galleryWindow.mapGallery.Path = data.GetLocalDataPath() + "\\GlobeImages"; //bind to ArcGIS Engine installation ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Engine); if (!InitializeEngineLicense()) { MessageBox.Show("ArcGIS Engine License or Globe Extension could not be initialized. Closing..."); galleryWindow.Close(); } }