void MakeQuestionDB() { var dbq = new QuestionCommands (this); string[] qsts = Resources.GetStringArray (Resource.Array.quiz); foreach (string s in qsts) { dbq.AddQuestion (s, DateTime.Now); } }
void MakeQuestionDB() { var dbq = new QuestionCommands(this); string[] qsts = Resources.GetStringArray(Resource.Array.quiz); foreach (string s in qsts) { dbq.AddQuestion(s, DateTime.Now); } }
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()); }