Exemplo n.º 1
0
        private ObjectSearchResult SearchObjects(ObjectSearchRequest request)
        {
            ObjectSearchResult result = null;

            if (OnSearchStarted != null)
                OnSearchStarted(this, EventArgs.Empty);

            result = realService.SearchObjectExact(request.SearchTerm);

            if (OnSearchFinished != null)
                OnSearchFinished(this, EventArgs.Empty);

            return result;
        }
Exemplo n.º 2
0
        public ObjectListViewModel(ObjectSearchResult searchResult, VirtualObservatorySearchRequest request)
        {
            _request = request as ObjectSearchRequest;

            this.Objects = ModelHelpers.ObjectListFromResult(searchResult);
        }