Skip to content

Commit

Permalink
The DicomDictionaryLookupView now have capability to filter by privat…
Browse files Browse the repository at this point in the history
…e creator name
  • Loading branch information
celeron533 committed Dec 28, 2023
1 parent 5e65bee commit c4e6b71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DicomGrep/Views/DicomDictionaryLookupView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ private void Filter_TextChanged(object sender, TextChangedEventArgs e)
{
DicomDictionaryEntry dictionary = obj as DicomDictionaryEntry;
return dictionary.ToString().Contains(filterText.Trim(), StringComparison.OrdinalIgnoreCase) ||
//dictionary.Keyword.Contains(filterText.Trim(), StringComparison.OrdinalIgnoreCase) ||
(
dictionary.Tag.PrivateCreator != null &&
dictionary.Tag.PrivateCreator.Creator.Contains(filterText.Trim(), StringComparison.OrdinalIgnoreCase)
) ||
dictionary.Name.Contains(filterText.Trim(), StringComparison.OrdinalIgnoreCase);

};
Expand Down

0 comments on commit c4e6b71

Please sign in to comment.