public override bool SaveOptions()
 {
     try {
         ViewModel.Save();
         return(true);
     } catch (Exception ex) {
         LoggingService.Error("Unable to save NuGet.config changes", ex);
         MessageServiceExtensions.ShowNuGetConfigFileSaveError("Unable to save package source changes.");
     }
     return(false);
 }
 public override bool SaveOptions()
 {
     try {
         var viewModel = DataContext as PackageManagementOptionsViewModel;
         viewModel.SaveOptions();
         return(true);
     } catch (Exception ex) {
         LoggingService.Error("Unable to save NuGet.config changes", ex);
         MessageServiceExtensions.ShowNuGetConfigFileSaveError("Unable to save package management options.");
     }
     return(false);
 }