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); }
public PackageFolder(string name, PackageViewModel viewModel) : base(name, null, viewModel) { Children = new SortedCollection <PackagePart>(); }
public PackageFolder(string name, PackageFolder parent) : base(name, parent, parent.PackageViewModel) { Children = new SortedCollection <PackagePart>(); }