private void normalTestBut_Click(object sender, RoutedEventArgs e)
 {
     if (ValidateUserInput())
     {
         QuestonWindow win = new QuestonWindow(UserTb.Text, Convert.ToByte(PercentageTb.Text));
         win.Show();
         this.Close();
     }
 }
Example #2
0
 public ConfirmationWindow(QuestonWindow win, int numberOfCorrectQuestions, int numberOfQuestions, byte seconds, int minutes, string userName, byte percentage)
 {
     InitializeComponent();
     questWin = win;
     this.numberOfCorrectQuestions = numberOfCorrectQuestions;
     this.numberOfQuestions        = numberOfQuestions;
     this.seconds    = seconds;
     this.minutes    = minutes;
     this.userName   = userName;
     this.percentage = percentage;
 }