public FinalScore(List <Student> users, double grade, CardSet deck, bool audio)
        {
            InitializeComponent();
            studentList = users;
            score       = grade;
            set         = deck;
            audioOn     = audio;
            Label finalScore = this.FindByName <Label>("finalScore");

            finalScore.Text = score.ToString();
            Label listScores = this.FindByName <Label>("highScore");

            //add user's grade to history
            studentList.First().addScore(new Score(set.getSet(), grade));
            //show user's high score
            Student user   = studentList.First();
            String  numStr = "";
            int     k      = 0;

            foreach (Score scr in user.getGrades())
            {
                if (scr.getName() == set.getSet())//compare scores of same game
                {
                    numStr += scr.getNum().ToString() + "\n";
                    k++;
                    if (k >= 5) //list 5 max scores
                    {
                        break;
                    }
                }
            }
            listScores.Text = numStr;
            if (audioOn == true)
            {
                var text = "final score " + score.ToString();
                CrossTextToSpeech.Current.Speak(text);
            }
        }
        public Memory(List <Student> users, CardSet list, bool audio)
        {
            InitializeComponent();
            studentList = users;
            set         = list;
            audioOn     = audio;
            String           name    = set.getSet();
            List <FlashCard> myCards = new List <FlashCard>();

            foreach (FlashCard card in list.getCards())
            {
                myCards.Add(card);
            }
            copy = new CardSet(name, myCards);
            start();
        }