private void FireSearch(object sender, System.Timers.ElapsedEventArgs e) { if (SearchRoot == null) { SearchRoot = new AkWwiseTreeViewItem(ProjectRoot); } SearchRoot.children.Clear(); SearchItems = new List <AkWwiseTreeViewItem>(new[] { SearchRoot }); TreeUtility.TreeToList(SearchRoot, SearchItems); AkWaapiUtilities.GetResultListDelegate <WwiseObjectInfoJsonObject> callback = (List <WwiseObjectInfoJsonObject> items) => { AddSearchResults(AkWaapiUtilities.ParseObjectInfo(items)); }; AkWaapiUtilities.Search(searchString, searchObjectTypeFilter, waapiWwiseObjectOptions, callback); }