Exemplo n.º 1
0
        public startQuiz()
        {
            db = new mainDal();
            DateTime d = DateTime.Now;

            InitializeComponent();
            r         = new buninessObjects.result();
            r.Qid     = 1;
            r.Attempt = 0;
            r.Correct = 0;
            r.Timing  = d.ToString();

            li = db.startQuiz();

            this.statement.Content = li[i].Statement;
            opA.Content            = li[i].OptionA;
            opB.Content            = li[i].OptionB;
            opC.Content            = li[i].OptionC;
            opD.Content            = li[i].OptionD;
            r.Total = li.Count;
        }