private void FilterOutWhiteHair(object sender, FilterEventArgs e) { AsterixCharacter character = e.Item as AsterixCharacter; if ((character == null) || (character.Hair == HairColor.White)) { e.Accepted = false; } }
private void FilterOutA(object sender, FilterEventArgs e) { AsterixCharacter character = e.Item as AsterixCharacter; if ((character == null) || character.Name.StartsWith("A")) { e.Accepted = false; } }