private void OnSearchVideoFilerChanged(SearchResourceResultType type) { if (type != SearchResourceResultType.NoUse) { SearchType searchType = SearchType.Normal; if (type == SearchResourceResultType.Compare_Face || type == SearchResourceResultType.Compare_Normal) { searchType = SearchType.Compare; } else if (type == SearchResourceResultType.Face) { searchType = SearchType.Face; } else if (type == SearchResourceResultType.Normal) { searchType = SearchType.Normal; } else if (type == SearchResourceResultType.Vehicle) { searchType = SearchType.Vehicle; } if (m_currentSearchType != searchType) { DisplayResultView(searchType); m_currentSearchType = searchType; } } }
private void OnSearchVideoFilerChanged(SearchResourceResultType type) { if (type != SearchResourceResultType.NoUse) { SearchType filter = SearchType.Normal; if (type == SearchResourceResultType.Face || type == SearchResourceResultType.Compare_Face) { filter = SearchType.Face; } else if (type == SearchResourceResultType.Normal || type == SearchResourceResultType.Compare_Normal) { filter = SearchType.Normal; } else if (type == SearchResourceResultType.Vehicle) { filter = SearchType.Vehicle; } Filter = filter; RaisePropertyChangedEvent("Filter"); } }