Merge pull request #7 from pedrohex/nextstep

[Samples] Entry code cleanup
This commit is contained in:
Harry 2018-01-26 20:44:28 +01:00 committed by GitHub
commit 1ec9511bc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,12 +151,7 @@ namespace Samples
var o = model.GetValue(iter, 0); var o = model.GetValue(iter, 0);
var searchString = o as string; var searchString = o as string;
if (!string.IsNullOrEmpty(searchString)) if (!string.IsNullOrEmpty(searchString))
{ return searchString.StartsWith(entry.Text, System.StringComparison.InvariantCultureIgnoreCase);
if (searchString.StartsWith(entry.Text, System.StringComparison.InvariantCultureIgnoreCase))
return true;
else
return false;
}
return true; return true;
}; };