Esempio n. 1
0
        private void buttonGameOption_Click(object sender, EventArgs e)
        {
            Button currBtn = sender as Button;

            VMGameBoard.SetCommand(currBtn.Text);
            VMGameBoard.CreatePicturesGameFeature(m_LoggedInUser.Albums);
            setPictureBoxsAndLablesForGame();
        }
Esempio n. 2
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. 3
0
        private void resetPicturesGame()
        {
            bool state = false;

            VMGameBoard.ResetFeature();
            initPictureBox();
            setPictureBoxsState(state);
            updatePictureGameLables();
        }
Esempio n. 4
0
        private void pictureBoxGame_Click(object sender, EventArgs e)
        {
            VMGameBoard.InitPictureGameDetails(int.Parse((sender as PictureBox).Tag.ToString()));
            DialogResult res = r_PictureGameForm.ShowDialog();

            if (res == DialogResult.Yes)
            {
                VMGameBoard.ReplaceRightAnswerPictureURL();
                replacePictureBoxGame();
            }

            updatePointsLable();
        }
Esempio n. 5
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;
            }
        }