public PreScreen GetPreScreen()
        {
            PreScreen ps = new PreScreen();

            ps.text            = (string)_questions["prescreen"]["questionText"];
            ps.pictureFileName = (string)_questions["prescreen"]["picture"];

            return(ps);
        }
        public string[] AllPictureNames()
        {
            List <string> l = new List <string>();

            // get all the question pictures
            int index = 0;

            for (int i = 0; i < _numberOfQuestions; i++)
            {
                if (_questions["questions"][i]["picture"] != null)
                {
                    l.Add((string)_questions["questions"][i]["picture"]);
                }
                if (_questions["questions"][i]["picture2"] != null)
                {
                    l.Add((string)_questions["questions"][i]["picture2"]);
                }
                if (_questions["questions"][i]["prizepicture"] != null)
                {
                    l.Add((string)_questions["questions"][i]["prizepicture"]);
                }
                if (_questions["questions"][i]["pictures"] != null)
                {
                    int numberOfPictures = _questions["questions"][i]["pictures"].Count;
                    for (int j = 0; j < numberOfPictures; j++)
                    {
                        l.Add((string)_questions["questions"][i]["pictures"][j]);
                    }
                }
            }

            // add the prescreen picture if there is one.
            if (IsPreScreen())
            {
                PreScreen ps = GetPreScreen();
                l.Add(ps.pictureFileName);
            }

            return(l.ToArray());
        }