diff options
Diffstat (limited to 'src/Services/EventsUtil.cs')
-rw-r--r-- | src/Services/EventsUtil.cs | 35 |
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"); - } - } -} |