Esempio n. 1
0
        internal void SyncUpPredictionBox(object sender, NewTetronimoEventArgs e)
        {
            List <PictureBox> newTetronimo = m_TetronimoConverter.ConvertToPictureBox(e.NewTetronimo);

            for (int i = 0; i < 4; i++)
            {
                PictureBox pictureBox = (PictureBox)predictionBox.Controls[i];
                pictureBox.Location = newTetronimo[i].Location;
                pictureBox.Image    = newTetronimo[i].Image;
            }
        }
Esempio n. 2
0
        internal void SetUpPredictionBox(object sender, NewTetronimoEventArgs e)
        {
            foreach (var item in m_TetronimoConverter.ConvertToPictureBox(e.NewTetronimo))
            {
                predictionBox.Controls.Add(item);
            }

            foreach (PictureBox item in predictionBox.Controls)
            {
                item.Show();
            }
        }