|
1 | 1 | using System; |
2 | | -using System.Collections.Generic; |
3 | 2 | using System.Collections.ObjectModel; |
4 | 3 | using System.ComponentModel; |
5 | 4 | using System.Linq; |
6 | 5 | using System.Reflection; |
7 | 6 | using System.Runtime.CompilerServices; |
8 | | -using System.Runtime.Loader; |
9 | | -using System.Text; |
10 | | -using System.Threading.Tasks; |
11 | 7 | using System.Windows; |
12 | 8 | using System.Windows.Controls; |
13 | 9 | using System.Windows.Data; |
14 | | -using System.Windows.Documents; |
15 | | -using System.Windows.Input; |
16 | | -using System.Windows.Media; |
17 | | -using System.Windows.Media.Imaging; |
18 | | -using System.Windows.Shapes; |
19 | 10 | using RevitDBExplorer.WPF; |
20 | 11 |
|
21 | 12 | // (c) Revit Database Explorer https://github.com/NeVeSpl/RevitDBExplorer/blob/main/license.md |
@@ -100,10 +91,20 @@ public AssemblyViewModel(int no, Assembly asm) |
100 | 91 | public bool Filter(string text) |
101 | 92 | { |
102 | 93 | if (string.IsNullOrEmpty(text)) return true; |
| 94 | + |
| 95 | +#if R2025_MIN |
103 | 96 | if (Name?.Contains(text, StringComparison.OrdinalIgnoreCase) == true) return true; |
104 | 97 | if (Path?.Contains(text, StringComparison.OrdinalIgnoreCase) == true) return true; |
105 | 98 | if (AssemblyLoadContext?.Contains(text, StringComparison.OrdinalIgnoreCase) == true) return true; |
106 | 99 | if (Version?.Contains(text, StringComparison.OrdinalIgnoreCase) == true) return true; |
| 100 | +#endif |
| 101 | + |
| 102 | +#if R2024_MAX |
| 103 | + if (Name?.Contains(text) == true) return true; |
| 104 | + if (Path?.Contains(text) == true) return true; |
| 105 | + if (AssemblyLoadContext?.Contains(text) == true) return true; |
| 106 | + if (Version?.Contains(text) == true) return true; |
| 107 | +#endif |
107 | 108 |
|
108 | 109 | return false; |
109 | 110 | } |
|
0 commit comments