Example #1
0
        public void OnActivate(Excel.Workbook wb)
        {
            ProcessCleanQueue();

            var pane    = Panes.GetOrAdd(wb.Name, _ => CreatePane(wb));
            var handler = pane.Control.CurrentHandler ?? new WorkbookHandler(wb);

            // var handler = Handlers.GetOrAdd(wb, x => new WorkbookHandler(x));
            // タブの同期
            handler.SyncWorksheets();
            pane.Control.AssignWorkbookHandler(handler);

            RibbonMenu?.InvalidatePanesVisibility();
        }