Пример #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            // 强制软件加速
            RenderOptions.ProcessRenderMode = System.Windows.Interop.RenderMode.SoftwareOnly;
            // Before initializing the ArcGIS Runtime first
            // set the ArcGIS Runtime license by providing the license string
            // obtained from the License Viewer tool.
            //ArcGISRuntime.SetLicense("Place the License String in here"); 设置 ArcGIS Runtime 许可
            //ArcGISRuntime.SetLicense("runtimeadvanced,101,ecp327916071,01-jan-2021,B5F4LNBLEFJ92MZAD027");
            ArcGISRuntime.SetLicense("runtimestandard,101,rud262318119,none,2KYRMD1AJ4EL6XCFK092");

            //  "runtimestandard,101,rus592188164,18-jan-2015,C6JCA0PZAY0DY0HEY100";
            //  "runtimeadvanced,101,ecp327916071,01-jan-2021,B5F4LNBLEFJ92MZAD027"
            // Initialize the ArcGIS Runtime before any components are created.
            try
            {
                ArcGISRuntime.Initialize();
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog(ex.Message.ToString());
                MessageBox.Show(ex.Message.ToString());
                // Exit application
                this.Shutdown();
            }
        }
Пример #2
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            try
            {
                ArcGISRuntime.Initialize();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), (string)Application.Current.FindResource("strTitle"));

                // Exit application
                this.Shutdown();
            }
        }
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            // Before initializing the ArcGIS Runtime first
            // set the ArcGIS Runtime license by providing the license string
            // obtained from the License Viewer tool.
            //ArcGISRuntime.SetLicense("Place the License String in here");

            // Initialize the ArcGIS Runtime before any components are created.
            try
            {
                ArcGISRuntime.Initialize();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());

                // Exit application
                this.Shutdown();
            }
        }
Пример #4
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            // Before initializing the ArcGIS Runtime first
            // set the ArcGIS Runtime license by providing the license string
            // obtained from the License Viewer tool.
            ArcGISRuntime.SetLicense("runtimestandard,101,rud514140042,none,8SF97XLL6S875E5HJ220");
            // runtimestandard,101,rud096446463,15-oct-2014,NKLFD4S3EZ60E81PR088");

            // Initialize the ArcGIS Runtime before any components are created.
            try
            {
                ArcGISRuntime.Initialize();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());

                // Exit application
                this.Shutdown();
            }
        }
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            // Before initializing the ArcGIS Runtime first
            // set the ArcGIS Runtime license by providing the license string
            // obtained from the License Viewer tool.

            // ArcGISRuntime.SetLicense("TODO: Place the License String in here");

            // Initialize the ArcGIS Runtime before any components are created.
            try
            {
                ArcGISRuntime.Initialize();

                string sidc = "SFGAUCIL--AA---";
                if (e.Args.Length != 0)
                {
                    sidc = e.Args[0];
                }

                SymbolDictionary sd = new SymbolDictionary(SymbolDictionaryType.Mil2525C);

                const int exportSize = 128;

                System.Windows.Media.ImageSource export = sd.GetSymbolImage(sidc, exportSize, exportSize);

                System.Windows.Media.Imaging.WriteableBitmap bi = export as System.Windows.Media.Imaging.WriteableBitmap;

                SaveAsPng(sidc + ".png", bi);

                // Exit application
                this.Shutdown();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }