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