public ConnectorController(IConnectorService connectorService, IChargeStationService chargeStationService, IMapper mapper, ISuggester suggester)
 {
     _ConnectorService     = connectorService;
     _ChargeStationService = chargeStationService;
     _Mapper    = mapper;
     _Suggester = suggester;
 }
示例#2
0
        public SampleViewModel(ISuggester <DocSetEntity> suggester)
        {
            Suggester = suggester;

            var pathBase = @"C:\Projects\Docsets\Java.docset\Contents\Resources\Documents\";

            this.PropertyChanged += (s, e) =>
            {
                if (e.PropertyName == "SearchQuery")
                {
                    OnSearchQueryUpdate(SearchQuery);
                }
                else if (e.PropertyName == "SelectedResult")
                {
                    if (SelectedResult != null)
                    {
                        var pageSource = pathBase + SelectedResult.Entity.Path;
                        PageSource = pageSource;
                    }
                }
            };

            PageSource = @"C:\Projects\Docsets\Java.docset\Contents\Resources\Documents\overview-summary.html";
        }