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;
 }
 public Quiz Deserialize(string filepath)
 {
     string jsonstring = File.ReadAllText(Properties.Settings.Default.FilePath);
     var jsondto = new List<Dto>();
     jsondto = JsonConvert.DeserializeObject<List<Dto>>(jsonstring);
     var quiz = new Quiz();
     foreach (var VARIABLE in jsondto)
     {
         var Question = new QuestionAnswer();
         Question.Question = VARIABLE.Question;
         Question.A = VARIABLE.A;
         Question.B = VARIABLE.B;
         Question.C = VARIABLE.C;
         Question.D = VARIABLE.D;
         Question.RightAnswer = VARIABLE.RightAnswer;
         quiz.Add(Question);
     }
     return quiz;
 }