- Moderator
- #11
C#:
MpGenre mpGenre = null;
if (IsMPAA(program.Classification))
{
mpGenre = _mpGenres.Find(x => x.IsMovie == true);
}
else
{
mpGenre = _mpGenres.Find(x => x.MappedProgramGenres.Contains(program.Genre));
}
// If no mapped mp genre could be found or the found genre is disabled then return the default genre color.
if (mpGenre == null || !mpGenre.Enabled)
{
return defaultColor;
}