public void Visualize(Game gameContext) { for (int i = 0; i < gameContext.WinningSums.Length; i++) { cblWinningSums.Items.Add(new ListItem(String.Format("{0}) {1}", gameContext.WinningSums.Length - i, gameContext.WinningSums[i].ToString()))); } }
protected void btnRestart_Click(object sender, EventArgs e) { GameContext = new Game(RepositoryContext); GetNewQuestion(); DeactiveWinningSums(); btnCallTip.Enabled = true; btnHalfByHalfTip.Enabled = true; rblOptions.Enabled = true; btnResponse.Enabled = true; btnGoogleTip.Enabled = true; }