aboutsummaryrefslogtreecommitdiff
path: root/src/Services/EventsUtil.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-03-22 08:36:13 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-03-22 08:36:13 +0300
commit4f448f203471a19a1444555a895f503515ad2fda (patch)
tree301b7df2561d650e4d300d24341342bd77ac7f3e /src/Services/EventsUtil.cs
parent6484cac4f025bd84f7ffa2b2030d729dafe09d3d (diff)
Add basic test
Diffstat (limited to 'src/Services/EventsUtil.cs')
-rw-r--r--src/Services/EventsUtil.cs35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/Services/EventsUtil.cs b/src/Services/EventsUtil.cs
deleted file mode 100644
index bb37125..0000000
--- a/src/Services/EventsUtil.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using Microsoft.Office.Interop.Excel;
-using RhSolutions.AddIn;
-using RhSolutions.Controllers;
-
-namespace RhSolutions.Services
-{
- internal static class EventsUtil
- {
- private static readonly Application Excel = RhSolutionsAddIn.Excel;
-
- public static void Initialize()
- {
- Excel.SheetSelectionChange += RefreshExportButton;
- Excel.SheetActivate += RefreshConvertButton;
- Excel.WorkbookActivate += RefreshConvertButton;
- }
-
- public static void Uninitialize()
- {
- Excel.SheetSelectionChange -= RefreshExportButton;
- Excel.SheetActivate -= RefreshConvertButton;
- Excel.WorkbookActivate -= RefreshConvertButton;
- }
-
- private static void RefreshConvertButton(object sh)
- {
- RibbonController.RefreshControl("convert");
- }
-
- private static void RefreshExportButton(object sh, Range target)
- {
- RibbonController.RefreshControl("export");
- }
- }
-}