public GalleryDialog(NuGetFramework projectFramework, string path) { InitializeComponent(); packageViewController = new PackageViewController( projectFramework, path, this, packageView, packageDetails, packagePageSelector, packageIcons, searchComboBox, prereleaseCheckBox, () => false, value => { }, new[] { Constants.GalleryPackageType }); packageViewController.SearchPrefix = $"tags:{Constants.GalleryDirectory} "; packageViewController.PackageManager.PackageManagerPlugins.Add(new GalleryPackagePlugin(this)); InitializePackageSourceItems(); }
public PackageManagerDialog(NuGetFramework projectFramework, string path) { InitializeComponent(); packageViewController = new PackageViewController( projectFramework, path, this, packageView, packageDetails, packagePageSelector, packageIcons, searchComboBox, prereleaseCheckBox, () => updatesButton.Checked, value => multiOperationPanel.Visible = value, Enumerable.Empty <string>()); packageViewController.PackageManager.PackageManagerPlugins.Add(new ExecutablePackagePlugin(this)); InitializePackageSourceItems(); multiOperationPanel.Visible = false; multiOperationLabel.Text = Resources.MultipleUpdatesLabel; multiOperationButton.Text = Resources.MultipleUpdatesOperationName; DefaultTab = PackageManagerTab.Browse; }