-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathConfig.Designer.cs
More file actions
209 lines (180 loc) · 12.6 KB
/
Config.Designer.cs
File metadata and controls
209 lines (180 loc) · 12.6 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
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
200
201
202
203
204
205
206
207
208
209
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
// Versione runtime:4.0.30319.42000
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
// </auto-generated>
//------------------------------------------------------------------------------
namespace StudioAT.ArcGIS.ArcCatalog.AddIn.RemoveClassExtension {
using ESRI.ArcGIS.Desktop.AddIns;
using ESRI.ArcGIS.CatalogUI;
using ESRI.ArcGIS.Framework;
using ESRI.ArcGIS.ArcCatalog;
using System;
using System.Collections.Generic;
/// <summary>
/// A class for looking up declarative information in the associated configuration xml file (.esriaddinx).
/// </summary>
internal static class ThisAddIn {
internal static string Name {
get {
return "StudioAT.ArcGIS.ArcCatalog.AddIn.RemoveClassExtension";
}
}
internal static string AddInID {
get {
return "{533a5d55-fc81-43db-bb95-a9253e66c498}";
}
}
internal static string Company {
get {
return "Studio A&T";
}
}
internal static string Version {
get {
return "1.2";
}
}
internal static string Description {
get {
return "Remove a class extension or custom class from feature class";
}
}
internal static string Author {
get {
return "nicogis";
}
}
internal static string Date {
get {
return "4/4/2016";
}
}
internal static ESRI.ArcGIS.esriSystem.UID ToUID(this System.String id) {
ESRI.ArcGIS.esriSystem.UID uid = new ESRI.ArcGIS.esriSystem.UIDClass();
uid.Value = id;
return uid;
}
/// <summary>
/// A class for looking up Add-in id strings declared in the associated configuration xml file (.esriaddinx).
/// </summary>
internal class IDs {
/// <summary>
/// Returns 'StudioAT_ArcGIS_ArcCatalog_AddIn_RemoveClassExtension_Remove_Class_Extension_Button', the id declared for Add-in Button class 'RemoveClassExtension'
/// </summary>
internal static string RemoveClassExtension {
get {
return "StudioAT_ArcGIS_ArcCatalog_AddIn_RemoveClassExtension_Remove_Class_Extension_Butt" +
"on";
}
}
/// <summary>
/// Returns 'StudioAT_ArcGIS_ArcCatalog_AddIn_RemoveClassExtension_Remove_Instance_Class_Button', the id declared for Add-in Button class 'RemoveInstanceClass'
/// </summary>
internal static string RemoveInstanceClass {
get {
return "StudioAT_ArcGIS_ArcCatalog_AddIn_RemoveClassExtension_Remove_Instance_Class_Butto" +
"n";
}
}
}
}
internal static class ArcCatalog
{
private static IApplication s_app;
private static IGxDocumentEvents_Event s_docEvent;
public static IApplication Application
{
get
{
if (s_app == null)
s_app = Internal.AddInStartupObject.GetHook<IGxApplication>() as IApplication;
return s_app;
}
}
public static IDocument Document
{
get
{
if (Application != null)
return Application.Document;
return null;
}
}
public static IGxApplication ThisApplication
{
get { return Application as IGxApplication; }
}
public static IDockableWindowManager DockableWindowManager
{
get { return Application as IDockableWindowManager; }
}
public static IGxDocumentEvents_Event Events
{
get
{
s_docEvent = Document as IGxDocumentEvents_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;
}
}
}
}