Esempio n. 1
0
        public DocumentSaveWatcher(IVsBridge vsBridge, ICachedPredictionService predictionService, ISettingsStore settingsStore)
        {
            this.vsBridge          = vsBridge;
            this.predictionService = predictionService;
            this.settingsStore     = settingsStore;

            this.timer = CreateTimer(this.OnTimerElapsed);
        }
        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;
        }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
 public SolutionWatcher(IVsBridge vsBridge, IStatusWrapper statusWrapper, ICachedPredictionService cachedPredictionService)
 {
     this.vsBridge                = vsBridge;
     this.statusWrapper           = statusWrapper;
     this.cachedPredictionService = cachedPredictionService;
 }
 public PredictionsToolWindowController(IVsBridge vsBridge, Func <IPredictionsView> predictionsViewFactory)
 {
     this.vsBridge = vsBridge;
     this.predictionsViewFactory = predictionsViewFactory;
 }