1
0
Fork 0
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:
Yan Maniez 2019-07-19 00:19:07 +02:00
parent 90ed29e5eb
commit f5199f470b
5 changed files with 8 additions and 8 deletions

View file

@ -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;
}

View file

@ -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);
}