Merge branch 'master' of ssh://git.necronda.net:42069/winzer/wgneu-cs
This commit is contained in:
@ -47,9 +47,10 @@ namespace WGneu.Windows {
|
|||||||
|
|
||||||
private int CountMatchesInMember(Member m) {
|
private int CountMatchesInMember(Member m) {
|
||||||
if (TextFilter.Count == 0) return 0;
|
if (TextFilter.Count == 0) return 0;
|
||||||
string[] check = new string[] { m.MgNr.ToString(), m.FamilyName.ToLower(), m.GivenName.ToLower(), m.DefaultKg.Name.ToLower() };
|
string?[] check = new string?[] { m.MgNr.ToString(), m.FamilyName.ToLower(), m.GivenName.ToLower(), m.DefaultKg?.Name?.ToLower() };
|
||||||
int i = 0;
|
int i = 0;
|
||||||
foreach (string c in check) {
|
foreach (string? c in check) {
|
||||||
|
if (c == null) continue;
|
||||||
if (TextFilter.Any(f => c == f))
|
if (TextFilter.Any(f => c == f))
|
||||||
i += 10;
|
i += 10;
|
||||||
else if (TextFilter.Any(f => c.Contains(f)))
|
else if (TextFilter.Any(f => c.Contains(f)))
|
||||||
|
Reference in New Issue
Block a user