Exemplo n.º 1
0
 public void PopulateCenter(SimpleDominoInfo thisDomino)
 {
     if (DominoList.Count != 3)
     {
         throw new BasicBlankException("Must have 3 dominos before populating center");
     }
     DominoList.ReplaceItem(CenterDomino, thisDomino);
     CenterDomino = thisDomino; //just in case.
 }
Exemplo n.º 2
0
        public void TradeCard(int index, T newCard)
        {
            SKPoint oldLocation;

            oldLocation        = CardList[index].Location;
            newCard.Location   = oldLocation;
            newCard.IsSelected = false;
            newCard.Drew       = false;
            var oldCard = CardList[index];

            CardList.ReplaceItem(oldCard, newCard); // hopefully that simple.
        }
        public void TradeObject(int row, int column, D newObject)
        {
            var FirstObject = GetObject(row, column);

            ObjectList.ReplaceItem(FirstObject, newObject);
        }