Esempio n. 1
0
        internal void SyncRepresentationToGameGrid(object sender, GameTileColorChangedEventArgs e)
        {
            var foundControls = gameBox.Controls.Find(e.NewGameTile.ID.ToString(), false);

            foreach (PictureBox pictureControl in foundControls)
            {
                pictureControl.Image = TetronimoConverter.SelectBlockImage(e.NewGameTile.Color);
                pictureControl.Invalidate();
            }
        }
Esempio n. 2
0
 public void CollectGameTileColorChanges(object sender, GameTileColorChangedEventArgs e)
 {
     GameGrid_Changed.Invoke(this, e);
 }