private void ABtn_Click(object sender, RoutedEventArgs e) { int point = quizMaster.HandleAnswer(currentQuestion, "A"); Points += point; if(point == 4 || point == 0) { quizMaster.localCounter = 0; if (quizMaster.Counter != quiz.Count-1) { quizMaster.NewQuestion(currentQuestion, quiz[++quizMaster.Counter]); } else { var window = new EndView(Points); //window.WindowState = WindowState.Maximized; window.Show(); Close(); } } }
private void CBtn_Click(object sender, RoutedEventArgs e) { int point = quizMaster.HandleAnswer(currentQuestion, "C"); Points += point; if (point == 4 || point == 0) { quizMaster.localCounter = 0; if (quizMaster.Counter != quiz.Count - 1) { quizMaster.NewQuestion(currentQuestion, quiz[++quizMaster.Counter]); } else { var window = new EndView(Points); //window.WindowState = WindowState.Maximized; window.Show(); Close(); } } }