private void ThisAddIn_Startup(object sender, System.EventArgs e) { wizardInit(); masterGroupCollection = new MasterGroupSheetCollection(); Globals.ThisAddIn.Application.SheetFollowHyperlink += new Microsoft.Office.Interop.Excel.AppEvents_SheetFollowHyperlinkEventHandler(refreshChart); }
private void removeEntriesFromMasterGroupCollection(string wbName) { MasterGroupSheetCollection tempGroupCollection = new MasterGroupSheetCollection(); foreach (GroupSheetCollection gsc in this.masterGroupCollection) { if (gsc.WBName != wbName) { tempGroupCollection.Add(gsc); } } masterGroupCollection = tempGroupCollection; }