Beispiel #1
0
 public RepackagingRecommendationViewModel(
     IServiceRecommendationAdvisor serviceAdvisor,
     IInteractionService interactionService,
     AutoDownloadRecommendationViewModel autoDownloadRecommendation)
 {
     this.ServiceAdvisor             = serviceAdvisor;
     this.interactionService         = interactionService;
     this.AutoDownloadRecommendation = autoDownloadRecommendation;
     this.Items = new ObservableCollection <ServiceRecommendationViewModel>();
     this.AutoDownloadRecommendation.PropertyChanged += AutoDownloadRecommendationOnPropertyChanged;
 }
Beispiel #2
0
        public SystemStatusViewModel(
            IEventAggregator eventAggregator,
            IThirdPartyAppProvider thirdPartyDetector,
            IServiceRecommendationAdvisor serviceAdvisor,
            IInteractionService interactionService)
        {
            this.eventAggregator = eventAggregator;
            this.Items           = new ObservableCollection <BaseRecommendationViewModel>();

            var sideloading       = new DeveloperAndSideloadingRecommendationViewModel(this.SideLoadCheck);
            var storeAutoDownload = new AutoDownloadRecommendationViewModel(this.SideLoadCheck);
            var repackaging       = new RepackagingRecommendationViewModel(serviceAdvisor, interactionService, storeAutoDownload);
            var tooling           = new ToolingRecommendationViewModel(thirdPartyDetector);

            this.Items.Add(sideloading);
            this.Items.Add(storeAutoDownload);
            this.Items.Add(repackaging);
            this.Items.Add(tooling);
        }