Exemplo n.º 1
0
        private void FilterOutWhiteHair(object sender, FilterEventArgs e)
        {
            AsterixCharacter character = e.Item as AsterixCharacter;

            if ((character == null) || (character.Hair == HairColor.White))
            {
                e.Accepted = false;
            }
        }
Exemplo n.º 2
0
        private void FilterOutA(object sender, FilterEventArgs e)
        {
            AsterixCharacter character = e.Item as AsterixCharacter;

            if ((character == null) || character.Name.StartsWith("A"))
            {
                e.Accepted = false;
            }
        }