Example #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;
        }
Example #2
0
        public ObjectListViewModel(ObjectSearchResult searchResult, VirtualObservatorySearchRequest request)
        {
            _request = request as ObjectSearchRequest;

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