-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.Designer.cs
199 lines (173 loc) · 11.4 KB
/
Config.Designer.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.269
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace fulcrum {
using ESRI.ArcGIS.Framework;
using ESRI.ArcGIS.ArcMapUI;
using System;
using System.Collections.Generic;
using ESRI.ArcGIS.Desktop.AddIns;
/// <summary>
/// A class for looking up declarative information in the associated configuration xml file (.esriaddinx).
/// </summary>
internal class ThisAddIn {
internal static string Name {
get {
return "Fulcrum";
}
}
internal static string AddInID {
get {
return "{37066741-ee1c-4c33-9464-b073c70ea320}";
}
}
internal static string Company {
get {
return "Bright Rain Solutions";
}
}
internal static string Version {
get {
return "1.0";
}
}
internal static string Description {
get {
return "An integration tool to import data from the Fulcrum mobile data collections syste" +
"m (http://fulcrumapp.com/)";
}
}
internal static string Author {
get {
return "David Puckett";
}
}
internal static string Date {
get {
return "9/25/2012";
}
}
/// <summary>
/// A class for looking up Add-in id strings declared in the associated configuration xml file (.esriaddinx).
/// </summary>
internal class IDs {
/// <summary>
/// Returns 'fulcrum_FulcrumSettings', the id declared for Add-in Button class 'FulcrumSettings'
/// </summary>
internal static string FulcrumSettings {
get {
return "fulcrum_FulcrumSettings";
}
}
/// <summary>
/// Returns 'fulcrum_FulcrumTools', the id declared for Add-in Button class 'FulcrumTools'
/// </summary>
internal static string FulcrumTools {
get {
return "fulcrum_FulcrumTools";
}
}
}
}
internal static class ArcMap
{
private static IApplication s_app = null;
private static IDocumentEvents_Event s_docEvent;
public static IApplication Application
{
get
{
if (s_app == null)
s_app = Internal.AddInStartupObject.GetHook<IMxApplication>() as IApplication;
return s_app;
}
}
public static IMxDocument Document
{
get
{
if (Application != null)
return Application.Document as IMxDocument;
return null;
}
}
public static IMxApplication ThisApplication
{
get { return Application as IMxApplication; }
}
public static IDockableWindowManager DockableWindowManager
{
get { return Application as IDockableWindowManager; }
}
public static IDocumentEvents_Event Events
{
get
{
s_docEvent = Document as IDocumentEvents_Event;
return s_docEvent;
}
}
}
namespace Internal
{
[StartupObjectAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public sealed partial class AddInStartupObject : AddInEntryPoint
{
private static AddInStartupObject _sAddInHostManager;
private List<object> m_addinHooks = null;
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
public AddInStartupObject()
{
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
protected override bool Initialize(object hook)
{
bool createSingleton = _sAddInHostManager == null;
if (createSingleton)
{
_sAddInHostManager = this;
m_addinHooks = new List<object>();
m_addinHooks.Add(hook);
}
else if (!_sAddInHostManager.m_addinHooks.Contains(hook))
_sAddInHostManager.m_addinHooks.Add(hook);
return createSingleton;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
protected override void Shutdown()
{
_sAddInHostManager = null;
m_addinHooks = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
internal static T GetHook<T>() where T : class
{
if (_sAddInHostManager != null)
{
foreach (object o in _sAddInHostManager.m_addinHooks)
{
if (o is T)
return o as T;
}
}
return null;
}
// Expose this instance of Add-in class externally
public static AddInStartupObject GetThis()
{
return _sAddInHostManager;
}
}
}
}