private void RemoveLicenseHeaderFromAllProjectsCallback (object sender, EventArgs e) { Solution solution = _dte.Solution; IVsStatusbar statusBar = (IVsStatusbar) GetService (typeof (SVsStatusbar)); var removeLicenseHeaderFromAllProjects = new RemoveLicenseHeaderFromAllProjectsCommand(statusBar, _licenseReplacer); removeLicenseHeaderFromAllProjects.Execute(solution); }
private void RemoveLicenseHeaderFromAllProjectsCallback (object sender, EventArgs e) { Solution solution = _dte.Solution; IVsStatusbar statusBar = (IVsStatusbar) GetService (typeof (SVsStatusbar)); var removeLicenseHeaderFromAllProjects = new RemoveLicenseHeaderFromAllProjectsCommand(statusBar, _licenseReplacer); bool resharperSuspended = CommandUtility.ExecuteCommandIfExists("ReSharper_Suspend", _dte); removeLicenseHeaderFromAllProjects.Execute(solution); if (resharperSuspended) { CommandUtility.ExecuteCommand("ReSharper_Resume", _dte); } }