-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathModuleChatGPT.cs
32 lines (26 loc) · 926 Bytes
/
ModuleChatGPT.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
using ArcGIS.Desktop.Framework;
using ArcGIS.Desktop.Framework.Contracts;
namespace PAMChatGPT
{
internal class ModuleChatGPT : Module
{
private static ModuleChatGPT _this = null;
/// <summary>
/// Retrieve the singleton instance to this module here
/// </summary>
public static ModuleChatGPT Current => _this ??= (ModuleChatGPT)FrameworkApplication.FindModule("PAMChatGPT_Module");
public static Bot Bot => Bot.GetBot();
#region Overrides
/// <summary>
/// Called by Framework when ArcGIS Pro is closing
/// </summary>
/// <returns>False to prevent Pro from closing, otherwise True</returns>
protected override bool CanUnload()
{
//TODO - add your business logic
//return false to ~cancel~ Application close
return true;
}
#endregion Overrides
}
}