コード例 #1
0
        public AddPackagesDialog(
            ManagePackagesViewModel parentViewModel,
            string initialSearch,
            IBackgroundPackageActionRunner backgroundActionRunner,
            IRecentPackageRepository recentPackageRepository)
        {
            this.parentViewModel         = parentViewModel;
            this.viewModel               = parentViewModel.AvailablePackagesViewModel;
            this.backgroundActionRunner  = backgroundActionRunner;
            this.recentPackageRepository = recentPackageRepository;

            Build();

            UpdatePackageSearchEntryWithInitialText(initialSearch);

            InitializeListView();
            UpdateAddPackagesButton();
            ShowLoadingMessage();
            LoadViewModel(initialSearch);

            this.showPrereleaseCheckBox.Clicked         += ShowPrereleaseCheckBoxClicked;
            this.packageSourceComboBox.SelectionChanged += PackageSourceChanged;
            this.addPackagesButton.Clicked    += AddPackagesButtonClicked;
            this.packageSearchEntry.Changed   += PackageSearchEntryChanged;
            this.packageSearchEntry.Activated += PackageSearchEntryActivated;
            imageLoader.Loaded += ImageLoaded;
        }
コード例 #2
0
        public AddPackagesDialog(
            AllPackagesViewModel viewModel,
            string initialSearch,
            IBackgroundPackageActionRunner backgroundActionRunner)
        {
            this.viewModel = viewModel;
            this.backgroundActionRunner = backgroundActionRunner;

            Build();

            UpdatePackageSearchEntryWithInitialText(initialSearch);

            InitializeListView();
            UpdateAddPackagesButton();
            ShowLoadingMessage();
            LoadViewModel(initialSearch);

            this.showPrereleaseCheckBox.Clicked         += ShowPrereleaseCheckBoxClicked;
            this.packageSourceComboBox.SelectionChanged += PackageSourceChanged;
            this.addPackagesButton.Clicked               += AddPackagesButtonClicked;
            this.packageSearchEntry.Changed              += PackageSearchEntryChanged;
            this.packageSearchEntry.Activated            += PackageSearchEntryActivated;
            this.packageVersionComboBox.SelectionChanged += PackageVersionChanged;
            imageLoader.Loaded += ImageLoaded;
        }
コード例 #3
0
 public RestoreBeforeUpdateAction(
     IPackageManagementProjectService projectService,
     IBackgroundPackageActionRunner backgroundRunner)
 {
     this.projectService   = projectService;
     this.backgroundRunner = backgroundRunner;
 }
コード例 #4
0
 public PackageReinstaller(
     IPackageManagementSolution solution,
     IBackgroundPackageActionRunner runner)
 {
     this.solution = solution;
     this.runner   = runner;
 }
コード例 #5
0
		public AddPackagesDialog (
			ManagePackagesViewModel parentViewModel,
			string initialSearch,
			IBackgroundPackageActionRunner backgroundActionRunner,
			IRecentPackageRepository recentPackageRepository)
		{
			this.parentViewModel = parentViewModel;
			this.viewModel = parentViewModel.AvailablePackagesViewModel;
			this.backgroundActionRunner = backgroundActionRunner;
			this.recentPackageRepository = recentPackageRepository;

			Build ();

			UpdatePackageSearchEntryWithInitialText (initialSearch);

			InitializeListView ();
			UpdateAddPackagesButton ();
			ShowLoadingMessage ();
			LoadViewModel (initialSearch);

			this.showPrereleaseCheckBox.Clicked += ShowPrereleaseCheckBoxClicked;
			this.packageSourceComboBox.SelectionChanged += PackageSourceChanged;
			this.addPackagesButton.Clicked += AddPackagesButtonClicked;
			this.packageSearchEntry.Changed += PackageSearchEntryChanged;
			this.packageSearchEntry.Activated += PackageSearchEntryActivated;
			imageLoader.Loaded += ImageLoaded;
		}
コード例 #6
0
		public AddPackagesDialog (
			AllPackagesViewModel viewModel,
			string initialSearch,
			IBackgroundPackageActionRunner backgroundActionRunner)
		{
			this.viewModel = viewModel;
			this.backgroundActionRunner = backgroundActionRunner;

			Build ();

			UpdatePackageSearchEntryWithInitialText (initialSearch);

			InitializeListView ();
			UpdateAddPackagesButton ();
			ShowLoadingMessage ();
			LoadViewModel (initialSearch);

			this.showPrereleaseCheckBox.Clicked += ShowPrereleaseCheckBoxClicked;
			this.packageSourceComboBox.SelectionChanged += PackageSourceChanged;
			this.addPackagesButton.Clicked += AddPackagesButtonClicked;
			this.packageSearchEntry.Changed += PackageSearchEntryChanged;
			this.packageSearchEntry.Activated += PackageSearchEntryActivated;
			this.packageVersionComboBox.SelectionChanged += PackageVersionChanged;
			imageLoader.Loaded += ImageLoaded;
		}
コード例 #7
0
		public PackageReinstaller (
			IPackageManagementSolution solution,
			IBackgroundPackageActionRunner runner)
		{
			this.solution = solution;
			this.runner = runner;
		}
コード例 #8
0
		public RestoreBeforeUpdateAction (
			IPackageManagementProjectService projectService,
			IBackgroundPackageActionRunner backgroundRunner)
		{
			this.projectService = projectService;
			this.backgroundRunner = backgroundRunner;
		}
コード例 #9
0
        public ManagePackagesDialog(
            ManagePackagesViewModel viewModel,
            string initialSearch,
            IBackgroundPackageActionRunner backgroundActionRunner)
        {
            this.viewModel = viewModel;
            this.backgroundActionRunner = backgroundActionRunner;

            Build();

            consolidateLabel.Visible = viewModel.IsManagingSolution;
            UpdateDialogTitle();
            UpdatePackageSearchEntryWithInitialText(initialSearch);
            UpdatePackageResultsPageLabels();

            InitializeListView();
            UpdateAddPackagesButton();
            ShowLoadingMessage();
            LoadViewModel(initialSearch);

            closeButton.Clicked += CloseButtonClicked;
            this.showPrereleaseCheckBox.Clicked         += ShowPrereleaseCheckBoxClicked;
            this.packageSourceComboBox.SelectionChanged += PackageSourceChanged;
            this.addPackagesButton.Clicked  += AddPackagesButtonClicked;
            this.packageSearchEntry.Changed += PackageSearchEntryChanged;
            this.packageVersionComboBox.SelectionChanged += PackageVersionChanged;
            imageLoader.Loaded += ImageLoaded;

            browseLabel.ButtonPressed      += BrowseLabelButtonPressed;
            installedLabel.ButtonPressed   += InstalledLabelButtonPressed;
            updatesLabel.ButtonPressed     += UpdatesLabelButtonPressed;
            consolidateLabel.ButtonPressed += ConsolidateLabelButtonPressed;
        }
コード例 #10
0
		public ProjectTemplateNuGetPackageInstaller (
			IPackageManagementSolution solution,
			IPackageRepositoryCache packageRepositoryCache,
			IBackgroundPackageActionRunner backgroundPackageActionRunner)
		{
			this.packageManagementSolution = solution;
			this.packageRepositoryCache = packageRepositoryCache;
			this.backgroundPackageActionRunner = backgroundPackageActionRunner;
		}
コード例 #11
0
 public ProjectTemplateNuGetPackageInstaller(
     IPackageManagementSolution solution,
     IPackageRepositoryCache packageRepositoryCache,
     IBackgroundPackageActionRunner backgroundPackageActionRunner)
 {
     this.packageManagementSolution     = solution;
     this.packageRepositoryCache        = packageRepositoryCache;
     this.backgroundPackageActionRunner = backgroundPackageActionRunner;
 }
コード例 #12
0
 public ProjectTemplateNuGetPackageInstaller(
     IBackgroundPackageActionRunner backgroundPackageActionRunner)
 {
     this.backgroundPackageActionRunner = backgroundPackageActionRunner;
 }
		public ProjectTemplateNuGetPackageInstaller (
			IBackgroundPackageActionRunner backgroundPackageActionRunner)
		{
			this.backgroundPackageActionRunner = backgroundPackageActionRunner;
		}
コード例 #14
0
 public PackageReinstaller(
     IBackgroundPackageActionRunner runner)
 {
     this.runner = runner;
 }
コード例 #15
0
		public PackageReinstaller (
			IBackgroundPackageActionRunner runner)
		{
			this.runner = runner;
		}