public void OnKeyDownHandler(object sender, KeyEventArgs e) { if (e.Key == Key.Return) { updatescore(); string numbers = Win1Logic.rng(); changetext(); answerbox.Text = ""; } }
public void updatescore() { if (Win1Logic.UpdateScoreLogic(answerbox.Text, box1.Text, box2.Text) == true) { count++; score.Text = count.ToString(); } else { answerbox.Text = ""; } }
public void changetext() { string[] text = Win1Logic.populate().Split('-'); box1.Text = text[0]; box2.Text = text[1]; }