private void buttonGameOption_Click(object sender, EventArgs e) { Button currBtn = sender as Button; VMGameBoard.SetCommand(currBtn.Text); VMGameBoard.CreatePicturesGameFeature(m_LoggedInUser.Albums); setPictureBoxsAndLablesForGame(); }
private void setAlbumPictuersGame() { updatePictureGameLables(); pictureBox1.LoadAsync(VMGameBoard.GetPicUrlByIndex(0)); pictureBox2.LoadAsync(VMGameBoard.GetPicUrlByIndex(1)); pictureBox3.LoadAsync(VMGameBoard.GetPicUrlByIndex(2)); pictureBox4.LoadAsync(VMGameBoard.GetPicUrlByIndex(3)); }
private void resetPicturesGame() { bool state = false; VMGameBoard.ResetFeature(); initPictureBox(); setPictureBoxsState(state); updatePictureGameLables(); }
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(); }
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; } }