示例#1
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);
        }
示例#2
0
 public ToolingRecommendationViewModel(IThirdPartyAppProvider thirdPartyDetector)
 {
     this.ThirdPartyDetector = thirdPartyDetector;
     this.Items = new ObservableCollection <DiscoveredAppViewModel>();
 }