public void NewQuestion(QuizView.CurrentQuestion cur, QuestionAnswer que)
 {
     cur.Question = que.Question;
     cur.A = que.A;
     cur.B = que.B;
     cur.C = que.C;
     cur.D = que.D;
     cur.RightAnswer = que.RightAnswer;
 }
 private void button_Copy_Click(object sender, RoutedEventArgs e)
 {
     var json = new FileDeserializer();
     var quiz = new Quiz();
     quiz = json.Deserialize(Properties.Settings.Default.FilePath);
     var quizview = new QuizView(quiz);
     quizview.Width = Width;
     quizview.Height = Height;
     Close();
     quizview.Show();
 }
        private void button_Copy_Click(object sender, RoutedEventArgs e)
        {
            var json = new FileDeserializer();
            var quiz = new Quiz();

            quiz = json.Deserialize(Properties.Settings.Default.FilePath);
            var quizview = new QuizView(quiz);

            quizview.Width  = Width;
            quizview.Height = Height;
            Close();
            quizview.Show();
        }
 public int HandleAnswer(QuizView.CurrentQuestion question, string answer)
 {
     if (question.RightAnswer == answer)
         return 0;
     if (localCounter == 0)
     {
         localCounter++;
         return 2;
     }
     if (localCounter == 1)
     {
         localCounter++;
         return 2;
     }
     if (localCounter == 2)
     {
         localCounter = 0;
         return 4;
     }
     return 0;
 }