Exemplo n.º 1
0
 public FeedbackView(Action<RunMessages> onMessage, Action<IRunResultCache> onCacheUpdate, DTE2 application)
 {
     _onMessage = onMessage;
     _onCacheUpdate = onCacheUpdate;
     _application = application;
     _presenter = BootStrapper.Services.Locate<IRunFeedbackPresenter>();
     _presenter.View = this;
     _resultsCache = BootStrapper.Services.Locate<IRunResultCache>();
     var infoPresenter = BootStrapper.Services.Locate<IInformationFeedbackPresenter>();
     _infoWindow = new InformationWindow(infoPresenter);
     _itemInfoWindow = new FeedbackItemWindow();
     _itemInfoWindow.LinkClicked += new EventHandler<StringArgs>(_itemInfoWindow_LinkClicked);
     BootStrapper.Services.Locate<IConfiguration>().ValidateSettings();
     _watcher = BootStrapper.Services.Locate<IDirectoryWatcher>();
     if (Connect.WatchFolder != null)
         _watcher.Watch(Connect.WatchFolder);
 }
Exemplo n.º 2
0
        public FeedbackView(Action <RunMessages> onMessage, Action <IRunResultCache> onCacheUpdate, DTE2 application)
        {
            _onMessage      = onMessage;
            _onCacheUpdate  = onCacheUpdate;
            _application    = application;
            _presenter      = BootStrapper.Services.Locate <IRunFeedbackPresenter>();
            _presenter.View = this;
            _resultsCache   = BootStrapper.Services.Locate <IRunResultCache>();
            var infoPresenter = BootStrapper.Services.Locate <IInformationFeedbackPresenter>();

            _infoWindow                  = new InformationWindow(infoPresenter);
            _itemInfoWindow              = new FeedbackItemWindow();
            _itemInfoWindow.LinkClicked += new EventHandler <StringArgs>(_itemInfoWindow_LinkClicked);
            BootStrapper.Services.Locate <IConfiguration>().ValidateSettings();
            _watcher = BootStrapper.Services.Locate <IDirectoryWatcher>();
            if (Connect.WatchFolder != null)
            {
                _watcher.Watch(Connect.WatchFolder);
            }
        }