Esempio n. 1
0
 private void setAlbumPictuersGame()
 {
     updatePictureGameLables();
     pictureBox1.LoadAsync(VMGameBoard.GetPicUrlByIndex(0));
     pictureBox2.LoadAsync(VMGameBoard.GetPicUrlByIndex(1));
     pictureBox3.LoadAsync(VMGameBoard.GetPicUrlByIndex(2));
     pictureBox4.LoadAsync(VMGameBoard.GetPicUrlByIndex(3));
 }
Esempio n. 2
0
        private void replacePictureBoxGame()
        {
            switch (VMGameBoard.PictureGameAlbumIndex)
            {
            case 0:
                pictureBox1.LoadAsync(VMGameBoard.GetPicUrlByIndex(0));
                break;

            case 1:
                pictureBox2.LoadAsync(VMGameBoard.GetPicUrlByIndex(1));
                break;

            case 2:
                pictureBox3.LoadAsync(VMGameBoard.GetPicUrlByIndex(2));
                break;

            case 3:
                pictureBox4.LoadAsync(VMGameBoard.GetPicUrlByIndex(3));
                break;
            }
        }