示例#1
0
 public Activity(Subject aSubject, StudentGroup aGroup)
 {
     empty = false;
     Subject = aSubject;
     Group = aGroup;
     ID = ++id;
 }
示例#2
0
 private void AddActivities(StudentGroup group, Subject subject, short count)
 {
     rand = new Random(DateTime.Now.Millisecond);
     while (count > 0)
     {
         int ind = rand.Next(0, activities.Length);
         if (activities[ind].IsEmpty)
         {
             activities[ind] = new Activity(subject, group);
             count--;
         }
         else
         {
             continue;
         }
     }
 }