Esempio n. 1
0
        public PluginListViewModel(PluginRegistryService service) : this()
        {
            this.service = service;

            RefreshCommand = new RelayCommand(
                _ => !IsLoadingPlugins && !IsLoadingLocalPlugins && AllPlugins.All(p => !p.IsBusy),
                _ => Refresh());
            FilterCommand = new RelayCommand(_ => true, Filter);
        }
Esempio n. 2
0
        public PluginListViewModel(PluginRegistryService service)
        {
            this.service = service;

            AvailablePlugins = new ObservableCollection<IPluginViewModel>();
            FreshPlugins = new ObservableCollection<IPluginViewModel>();
            InstalledPlugins = new ObservableCollection<IPluginViewModel>();
            MarkedForRemovalPlugins = new ObservableCollection<IPluginViewModel>();
            RefreshCommand = new RelayCommand(
                _ => !IsLoadingPlugins && !IsLoadingLocalPlugins && AllPlugins.All(p => !p.IsBusy),
                _ => Refresh());
        }