public Activity(Subject aSubject, StudentGroup aGroup) { empty = false; Subject = aSubject; Group = aGroup; ID = ++id; }
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; } } }