-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathThisAddIn.cs
37 lines (29 loc) · 926 Bytes
/
ThisAddIn.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
using Excel = Microsoft.Office.Interop.Excel;
namespace GINtool
{
public partial class ThisAddIn
{
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
}
public Excel.Application GetExcelApplication()
{
return (Excel.Application)this.Application;
}
private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
{
Properties.Settings.Default.Save();
}
#region VSTO generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InternalStartup()
{
this.Startup += new System.EventHandler(ThisAddIn_Startup);
this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
}
#endregion
}
}