mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-22 10:03:41 +00:00
* et - pour les filtres
This commit is contained in:
parent
90ed29e5eb
commit
f5199f470b
5 changed files with 8 additions and 8 deletions
|
|
@ -15,7 +15,7 @@ namespace AideDeJeuLib
|
|||
{
|
||||
if (collapsed == null) return new List<KeyValuePair<string, string>>();
|
||||
var split = collapsed.Split(new string[] { "|" }, StringSplitOptions.None).Select(s => new KeyValuePair<string, string>(s, s)).ToList();
|
||||
split.Insert(0, new KeyValuePair<string, string>("", "-"));
|
||||
split.Insert(0, new KeyValuePair<string, string>("", "*"));
|
||||
return split;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ namespace AideDeJeu.ViewModels.Library
|
|||
|
||||
public bool MatchContainsOrNot(string itemValue, string filterValue)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(filterValue) && string.IsNullOrWhiteSpace(filterValue))
|
||||
if (filterValue == "-")
|
||||
{
|
||||
return string.IsNullOrEmpty(itemValue);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue