Beispiel #1
0
 void MakeQuestionDB()
 {
     var dbq = new QuestionCommands (this);
     string[] qsts = Resources.GetStringArray (Resource.Array.quiz);
     foreach (string s in qsts) {
         dbq.AddQuestion (s, DateTime.Now);
     }
 }
Beispiel #2
0
        void MakeQuestionDB()
        {
            var dbq = new QuestionCommands(this);

            string[] qsts = Resources.GetStringArray(Resource.Array.quiz);
            foreach (string s in qsts)
            {
                dbq.AddQuestion(s, DateTime.Now);
            }
        }
Beispiel #3
0
        public Question[] NewQuiz()
        {
            List <Question> allquestions = new List <Question> ();

            try
            {
                var qC = new QuestionCommands(this);
                allquestions = qC.GetAllQuestions();
            }
            catch (System.Exception sysExc)
            {
                Toast.MakeText(this, sysExc.Message, ToastLength.Long);
            }
            allquestions = Shuffle(allquestions);

            return(allquestions.ToArray());
        }