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; }
public ObjectListViewModel(ObjectSearchResult searchResult, VirtualObservatorySearchRequest request) { _request = request as ObjectSearchRequest; this.Objects = ModelHelpers.ObjectListFromResult(searchResult); }