diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2022-12-20 12:27:47 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2022-12-20 12:27:47 +0300 |
commit | 73569a43644309d0342817580bcfd86c1face5b8 (patch) | |
tree | f3c6e15db82130b02ec8c3fa1b64674e6a9cf48d /src/AddIn/EventsUtil.cs | |
parent | 3d186c22e8665b80839495fdcf4b176c2f3e03b9 (diff) |
Namespace refactoring
Diffstat (limited to 'src/AddIn/EventsUtil.cs')
-rw-r--r-- | src/AddIn/EventsUtil.cs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/AddIn/EventsUtil.cs b/src/AddIn/EventsUtil.cs deleted file mode 100644 index 3ceccfd..0000000 --- a/src/AddIn/EventsUtil.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Microsoft.Office.Interop.Excel; - -namespace RhSolutions -{ - internal static class EventsUtil - { - private static readonly Application Excel = AddIn.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) - { - Interface.RibbonController.RefreshControl("convert"); - } - - private static void RefreshExportButton(object sh, Range target) - { - Interface.RibbonController.RefreshControl("export"); - } - } -} |