private void WorkbookOpen(Excel.Workbook wb) { CreateSheetHistoryStack(wb); // WorkbookOpen 이벤트에서는 excel만 실행시킨 경우에는 pane이 생성안됨 // RibbonButton_Load 이벤트에서 excel만 실행시킨 경우 pane이 생성됨 CreateSheetNaviPane(Properties.Settings.Default.SheetNavi_AlwaysShow, wb); pFuncRibonButtonEnDisable(0); SheetNaviObjDict[wb.Name].BtnEnDisableChk(); }
private void WorkbookBeforeClose(Excel.Workbook wb, ref bool cancel) { DeleteSheetHistoryStack(wb); DeleteSheetNaviPane(wb); }
public WorkbookState(Excel.Application app, Workbook workbook) { _app = app; _workbook = workbook; _analysis.hasRun = false; }