Add ability to search by #TAGS using '#'
This commit is contained in:
1 parent
cd0e5223cd
commit
0695803a2e
1 file changed
+13
@@ -100,6 +100,7 @@ namespace Vocaluxe.Base
|
|||||||
String searchForLanguage = null; // l:
|
String searchForLanguage = null; // l:
|
||||||
String searchForCreator = null; // c:
|
String searchForCreator = null; // c:
|
||||||
String searchForEdition = null; // e:
|
String searchForEdition = null; // e:
|
||||||
|
String searchForTags = null; // #:
|
||||||
String searchForAlbum = null; // al:
|
String searchForAlbum = null; // al:
|
||||||
String searchForFileName = null; // fi:
|
String searchForFileName = null; // fi:
|
||||||
String searchForFolderName = null; // fo:
|
String searchForFolderName = null; // fo:
|
||||||
@@ -138,6 +139,9 @@ namespace Vocaluxe.Base
|
|||||||
case "E:":
|
case "E:":
|
||||||
searchForEdition = searchToken.Substring(2);
|
searchForEdition = searchToken.Substring(2);
|
||||||
break;
|
break;
|
||||||
|
case "#:":
|
||||||
|
searchForTags = searchToken.Substring(2);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
foundIt = false;
|
foundIt = false;
|
||||||
break;
|
break;
|
||||||
@@ -231,6 +235,15 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (searchForTags != null)
|
||||||
|
{
|
||||||
|
foreach (String tag in song.Tags)
|
||||||
|
{
|
||||||
|
if (tag.ToUpper().Contains(searchForTags))
|
||||||
|
_FilteredSongs.Add(song);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (searchForYear != null)
|
if (searchForYear != null)
|
||||||
{
|
{
|
||||||
int pos = searchForYear.IndexOf("-");
|
int pos = searchForYear.IndexOf("-");
|
||||||
|
|||||||
Reference in new issue
Block a user