-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApplication.xaml.cs
38 lines (34 loc) · 1.01 KB
/
Application.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using ESRI.ArcGIS.Client;
namespace NoiseMapper
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
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();
}
}
}
}