Example #1
0
 public PackageManagerDialog(string path)
 {
     InitializeComponent();
     packageManagerProxy = new PackageManagerProxy();
     packageManagerProxy.PackageInstalling += packageManagerProxy_PackageInstalling;
     packageViewController = new PackageViewController(
         path,
         this,
         packageView,
         packageDetails,
         packagePageSelector,
         packageManagerProxy,
         packageIcons,
         searchComboBox,
         sortComboBox,
         releaseFilterComboBox,
         () => updatesNode.IsExpanded,
         value => multiOperationPanel.Visible = value,
         Enumerable.Empty <string>());
     InitializeRepositoryViewNodes();
     multiOperationPanel.Visible = false;
     multiOperationLabel.Text    = Resources.MultipleUpdatesLabel;
     multiOperationButton.Text   = Resources.MultipleUpdatesOperationName;
     DefaultTab = PackageManagerTab.Online;
 }
Example #2
0
 public GalleryDialog(string path)
 {
     InitializeComponent();
     packageManagerProxy = new PackageManagerProxy();
     packageManagerProxy.PackageInstalling += packageManagerProxy_PackageInstalling;
     packageViewController = new PackageViewController(
         path,
         this,
         packageView,
         packageDetails,
         packagePageSelector,
         packageManagerProxy,
         packageIcons,
         searchComboBox,
         sortComboBox,
         releaseFilterComboBox,
         () => false,
         value => { },
         new[] { Constants.BonsaiDirectory, Constants.GalleryDirectory });
 }