예제 #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;
            }
        }
예제 #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;
            }
        }