internal void AddBrandingPanel() { if (!HasBeenActivated) { string basePath = ""; string recipeName = ""; Microsoft.VisualStudio.VSHelp.Help helpService = null; try { IConfigurationService s = this.GetService(typeof(IConfigurationService)) as IConfigurationService; basePath = s.BasePath; helpService = (Microsoft.VisualStudio.VSHelp.Help)base.GetService(typeof(Microsoft.VisualStudio.VSHelp.Help)); IDictionaryService dictionaryService = GetService(typeof(IDictionaryService)) as IDictionaryService; recipeName = dictionaryService.GetValue("RecipeName").ToString(); } catch { //MessageBox.Show(ex.ToString()); } bPanel = new BrandingPanel(); this.Controls.Add(bPanel); bPanel.UpdateImage(GetBasePath()); bPanel.UpdateHelpPage(basePath, recipeName, helpService); } }