public InstalledItemsViewModel(InstalledItemsView view)
        {
            _view = view;

            UninstallCommand       = new DelegateCommand(Uninstall);
            CancelUninstallCommand = new DelegateCommand(CancelUninstall);

            LoadUninstallableItems();
        }
Beispiel #2
0
        public InstalledItemsViewModel(InstalledItemsView view)
        {
            _logger.Info("Startup");
            _view = view;

            UninstallCommand       = new DelegateCommand(Uninstall);
            CancelUninstallCommand = new DelegateCommand(CancelUninstall);
            SelectCommand          = new DelegateCommand(SelectForUninstall);

            LoadUninstallableItems();

            Observable.FromEventPattern <PropertyChangedEventArgs>(this, "PropertyChanged")
            .Where(x => x.EventArgs.PropertyName == "FilterText")
            .Subscribe(_ => FilteredItems.Refresh());
        }
        public InstalledItemsViewModel(InstalledItemsView view)
        {
            _logger.Info("Startup");
            _view = view;

            UninstallCommand = new DelegateCommand(Uninstall);
            CancelUninstallCommand = new DelegateCommand(CancelUninstall);
            SelectCommand = new DelegateCommand(SelectForUninstall);

            LoadUninstallableItems();

            Observable.FromEventPattern<PropertyChangedEventArgs>(this, "PropertyChanged")
                      .Where(x => x.EventArgs.PropertyName == "FilterText")
                      .Subscribe(_ => FilteredItems.Refresh());
        }