Ejemplo n.º 1
0
        public void TileClicked(object obj, EventArgs e)
        {
            Tile tile = (Tile)obj;

            //Invoke the pre tile selected event
            TileSelectingEventArgs eventArgs = new TileSelectingEventArgs(tile);

            OnTileSelecting(this, eventArgs);

            //Allow the event to be cancelled from within selecting
            if (eventArgs.IsEventCancelled())
            {
                return;
            }

            //Set as the new seleceted tile
            this._selectedTile = tile;

            //Invoke the post tile selected event
            OnTileSelected(this, new TileSelectedEventArgs(tile));
        }