Ejemplo n.º 1
0
 private void TileViewClickHandler(TileView tileView)
 {
     if (currentTileView == null)
     {
         currentTileView = tileView;
         tileView.HighlightAsCurrent(true);
     }
     else if (tileView == currentTileView)
     {
         currentTileView = null;
         tileView.HighlightAsCurrent(false);
     }
     else
     {
         OnPairPicked?.Invoke(tiles[currentTileView], tiles[tileView]);
     }
 }
Ejemplo n.º 2
0
 private void DeselectTile()
 {
     currentTileView.HighlightAsCurrent(false);
     currentTileView = null;
 }