ProgressMonitorStatusMessage CreateProgressMessage(IEnumerable <ReinstallPackageAction> actions)
 {
     if (actions.Count() == 1)
     {
         return(ProgressMonitorStatusMessageFactory.CreateRetargetingSinglePackageMessage(actions.First().PackageId));
     }
     return(ProgressMonitorStatusMessageFactory.CreateRetargetingPackagesInProjectMessage(actions.Count()));
 }
        void ShowStatusBarError(Exception ex)
        {
            ProgressMonitorStatusMessage message = ProgressMonitorStatusMessageFactory.CreateRetargetingPackagesInProjectMessage();

            PackageManagementServices.BackgroundPackageActionRunner.ShowError(message, ex);
        }