예제 #1
0
        public PluginManagerViewModel(
            IPluginManager pluginManager,
            IUIServices uiServices,
            IPackageChooser packageChooser,
            INuGetPackageDownloader packageDownloader)
        {
            _pluginManager     = pluginManager ?? throw new ArgumentNullException(nameof(pluginManager));
            _uiServices        = uiServices ?? throw new ArgumentNullException(nameof(uiServices));
            _packageChooser    = packageChooser ?? throw new ArgumentNullException(nameof(packageChooser));
            _packageDownloader = packageDownloader ?? throw new ArgumentNullException(nameof(packageDownloader));

            DeleteCommand = new RelayCommand <PluginInfo>(DeleteCommandExecute, DeleteCommandCanExecute);
            AddCommand    = new RelayCommand <string>(AddCommandExecute);

            Plugins = new SortedCollection <PluginInfo>(_pluginManager.Plugins, this);
        }
예제 #2
0
 public PackageFolder(string name, PackageViewModel viewModel)
     : base(name, null, viewModel)
 {
     Children = new SortedCollection <PackagePart>();
 }
예제 #3
0
 public PackageFolder(string name, PackageFolder parent)
     : base(name, parent, parent.PackageViewModel)
 {
     Children = new SortedCollection <PackagePart>();
 }