public override void Exec() { try { UIHierarchy solExplorer = this.ApplicationObject.ToolWindows.SolutionExplorer; UIHierarchyItem hierItem = ((UIHierarchyItem)((System.Array)solExplorer.SelectedItems).GetValue(0)); ProjectItem projItem = (ProjectItem)hierItem.Object; string sFilePath = projItem.get_FileNames(0); string sFileName = projItem.Name + BACKUP_FILE_SUFFIX; SSAS.Tabular.TabularAnnotationWorkaroundForm form = new SSAS.Tabular.TabularAnnotationWorkaroundForm(sFileName); DialogResult res = form.ShowDialog(); if (res == DialogResult.OK) { FixAnnotations(sFilePath); MessageBox.Show("BIDS Helper annotation format changed successfully!", "BIDS Helper Annotation Workaround"); } } catch (System.Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace, "BIDS Helper - Error"); } }