public CachedPredictionService(IPredictionService predictionService, IVsBridge vsBridge, IStatusWrapper statusWrapper, IErrorHandler errorHandler) { this.predictionService = predictionService; this.vsBridge = vsBridge; this.statusWrapper = statusWrapper; this.errorHandler = errorHandler; this.PredictionsLoading += this.OnPredictionsLoading; this.PredictionsLoaded += this.OnPredictionsLoaded; }
public TitleBarButtonViewModel( IShowSettingsWindowCommand showSettingsWindowCommand, IShowPredictionsWindowCommand showPredictionsWindowCommand, IShowPredictionsPaneCommand showPredictionsPaneCommand, IStatusWrapper statusWrapper, ISettingsStore settingsStore) { this.StatusWrapper = statusWrapper; this.ShowSettingsWindowCommand = showSettingsWindowCommand; this.ShowPredictionsWindowCommand = showPredictionsWindowCommand; this.ShowPredictionsPaneCommand = showPredictionsPaneCommand; this.settingsStore = settingsStore; this.StatusWrapper.SetWaitingForSolution(); }
public PredictionsViewModel( ICachedPredictionService predictionService, IErrorHandler errorHandler, IVsBridge vsBridge, IStatusWrapper statusWrapper) { this.predictionService = predictionService; this.predictions = new ObservableCollection <PredictionViewModel>(); this.errorHandler = errorHandler; this.vsBridge = vsBridge; this.statusWrapper = statusWrapper; this.RefreshCommand = new BaseCommand(this.Refresh, this.CanRefresh); this.GoToFileCommand = new BaseCommand(this.GoToFile); this.NoContent = true; this.NoContentText = Strings.PleaseClickRefreshButtonToLoadPredictions; this.predictionService.PredictionsLoading += this.OnPredictionsLoading; this.predictionService.PredictionsLoaded += this.OnPredictionsLoaded; }
public SolutionWatcher(IVsBridge vsBridge, IStatusWrapper statusWrapper, ICachedPredictionService cachedPredictionService) { this.vsBridge = vsBridge; this.statusWrapper = statusWrapper; this.cachedPredictionService = cachedPredictionService; }