示例#1
0
 public void Reset()
 {
     lock (_syncLock)
     {
         Attempts.Clear();
         TriedToRenewToken = false;
     }
 }
示例#2
0
        public void UpdateLists()
        {
            Educations.Clear();
            Students.Clear();
            Exams.Clear();
            Attempts.Clear();
            foreach (DataRow dr in dao.Data.Tables["Educations"].Rows)
            {
                Education e = new Education(dr);
                Educations.Add(e);

                Students.AddRange(e.Students);
                Exams.AddRange(e.Exams);
            }

            foreach (DataRow dr in dao.Data.Tables["Attempts"].Rows)
            {
                Student s = (from stud in Students where stud.ID == (int)dr["student_id"] select stud).First();
                Exam    e = (from ex in Exams where ex.ID == (int)dr["exam_id"] select ex).First();

                Attempts.Add(new Attempt(dr, e, s));
            }
        }
示例#3
0
 internal virtual void PrepareForTheNextGame()
 {
     Attempts.Clear();
 }
示例#4
0
 public void Reset()
 {
     Attempts.Clear();
     TriedToRenewToken = false;
 }