-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLicenseInitializer.cs
More file actions
41 lines (39 loc) · 1.4 KB
/
Copy pathLicenseInitializer.cs
File metadata and controls
41 lines (39 loc) · 1.4 KB
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
39
40
41
//-----------------------------------------------------------------------
// <copyright file="LicenseInitializer.cs" company="Studio A&T s.r.l.">
// Copyright (c) Studio A&T s.r.l. All rights reserved.
// </copyright>
// <author>Nicogis</author>
//-----------------------------------------------------------------------
namespace Studioat.ArcGIS.Voronoi
{
using System;
using ESRI.ArcGIS;
/// <summary>
/// class LicenseInitializer
/// </summary>
internal partial class LicenseInitializer
{
/// <summary>
/// Initializes a new instance of the <see cref="LicenseInitializer"/> class
/// </summary>
public LicenseInitializer()
{
this.ResolveBindingEvent += new EventHandler(this.BindingArcGISRuntime);
}
/// <summary>
/// Binding ArcGISRuntime
/// </summary>
/// <param name="sender">object sender</param>
/// <param name="e">object EventArgs</param>
private void BindingArcGISRuntime(object sender, EventArgs e)
{
// TODO: Modify ArcGIS runtime binding code as needed
if (!RuntimeManager.Bind(ProductCode.Engine))
{
// Failed to bind, announce and force exit
Console.WriteLine("Invalid ArcGIS runtime binding. Application will shut down.");
System.Environment.Exit(0);
}
}
}
}