diff options
Diffstat (limited to 'src/AddIn')
-rw-r--r-- | src/AddIn/Functions.cs | 6 | ||||
-rw-r--r-- | src/AddIn/RhSolutionsAddIn.cs (renamed from src/AddIn/AddIn.cs) | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/AddIn/Functions.cs b/src/AddIn/Functions.cs index 2be19fa..0d3aef5 100644 --- a/src/AddIn/Functions.cs +++ b/src/AddIn/Functions.cs @@ -27,5 +27,11 @@ namespace RhSolutions.AddIn return result; } + + [ExcelFunction] + public static void ResetStatusBar() + { + RhSolutionsAddIn.Excel.StatusBar = false; + } } }
\ No newline at end of file diff --git a/src/AddIn/AddIn.cs b/src/AddIn/RhSolutionsAddIn.cs index 2aa71c7..0e51bec 100644 --- a/src/AddIn/AddIn.cs +++ b/src/AddIn/RhSolutionsAddIn.cs @@ -9,13 +9,13 @@ namespace RhSolutions.AddIn { class RhSolutionsAddIn : IExcelAddIn { - public static Application Excel; - public static HttpClient httpClient; + public static Application Excel { get; private set; } + public static HttpClient HttpClient { get; private set; } public void AutoOpen() { Excel = (Application)ExcelDnaUtil.Application; - httpClient = new HttpClient(); + HttpClient = new HttpClient(); IntelliSenseServer.Install(); RegistryUtil.Initialize(); EventsUtil.Initialize(); @@ -31,6 +31,7 @@ namespace RhSolutions.AddIn IntelliSenseServer.Uninstall(); RegistryUtil.Uninitialize(); EventsUtil.Uninitialize(); + HttpClient.Dispose(); } } } |