Ejemplo n.º 1
0
        protected List<Card> CreateCards()
        {
            List<Card> cards = new List<Card>();

            BitmapImage backgroundImage = GetImage("images/background.jpg");

            for (int x = 1; x < 9; x++)
            {
                BitmapImage frontImage = GetImage(String.Format("images/{1}/R{0}.png", x, iconSet));
                Card a = new Card(x.ToString(), frontImage, backgroundImage);

                frontImage = GetImage(String.Format("images/{1}/R{0}.png", x, iconSet));
                Card b = new Card(x.ToString(), frontImage, backgroundImage);

                cards.Add(a);
                cards.Add(b);
            }

            return cards;
        }
Ejemplo n.º 2
0
 protected virtual void OnCardPicked(Card card) { }