コード例 #1
0
ファイル: GalleryDialog.cs プロジェクト: spacelabswc/bonsai
 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();
 }
コード例 #2
0
 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;
 }