Inheritance: System.Windows.Window
			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();
        }
			}
Esempio n. 2
0
        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();
            }
        }