protected override void Run ()
		{
			try {
				var viewModels = new PackageManagementViewModels ();
				IPackageManagementEvents packageEvents = PackageManagementServices.PackageManagementEvents;
				using (var dialog = new ManagePackagesDialog (viewModels.ManagePackagesViewModel, packageEvents))
					MessageService.ShowCustomDialog (dialog);
			} catch (Exception ex) {
				LoggingService.LogInternalError (ex);
			}
		}
Example #2
0
 public void Run(string initialSearch = null, IDotNetProject project = null)
 {
     try {
         bool configurePackageSources = false;
         do
         {
             using (ManagePackagesDialog dialog = CreateDialog(initialSearch, project)) {
                 dialog.ShowWithParent();
                 configurePackageSources = dialog.ShowPreferencesForPackageSources;
                 initialSearch           = dialog.SearchText;
             }
             if (configurePackageSources)
             {
                 ShowPreferencesForPackageSources();
             }
         } while (configurePackageSources);
     } catch (Exception ex) {
         LoggingService.LogInternalError(ex);
     }
 }