예제 #1
0
 private void CallNextGroup()
 {
     if (GROUPS.Count > 0)
     {
         randGroup = new Random();
         int n = randGroup.Next(GROUPS.Count);
         selectedGroup = (Group)GROUPS[n];
         DisplayLabel.Text = selectedGroup.GroupName;
         GROUPS.RemoveAt(n);
         NextButton.Text = SELECT_GROUP_MEMBERS;
     }
     else
     {
         NextButton.Enabled = false;
         DisplayLabel.Text = DONE;
     }
 }
예제 #2
0
        private void loadGroupsAndMembers()
        {
            GROUPS = new ArrayList();
            Group g1 = new Group();
            g1.GroupName = "Avery's Group";
            g1.AddMember("Avery Brown");
            g1.AddMember("Andrea Cahill");
            g1.AddMember("Roger Ngosso-Same");
            g1.AddMember("Ray Mohaimani");
            g1.AddMember("Ehren Cheng");
            g1.AddMember("Omar Elabanna");
            GROUPS.Add(g1);

            Group g2 = new Group();
            g2.GroupName = "Amanda's Group";
            g2.AddMember("Amanda Rapacz");
            g2.AddMember("Rani Shah");
            g2.AddMember("Ariana Mayorga");
            g2.AddMember("Andrew Montague");
            g2.AddMember("Jessica Jaskolka");
            g2.AddMember("Analy Cuellar");
            GROUPS.Add(g2);

            Group g3 = new Group();
            g3.GroupName = "Peter's Group";
            g3.AddMember("Peter Zurowski");
            g3.AddMember("Samantha Hoskinson");
            g3.AddMember("Hanoz Umrigar");
            g3.AddMember("Dennis McFadden");
            g3.AddMember("Jefferson West");
            g3.AddMember("Kenneth Ruffato");
            GROUPS.Add(g3);

            Group g4 = new Group();
            g4.GroupName = "Marisa's Group";
            g4.AddMember("Marisa Haire");
            g4.AddMember("Sarah Varan");
            g4.AddMember("Maxine Mawussi");
            g4.AddMember("Bozhidara Svirkova");
            g4.AddMember("Sara Glade");
            g4.AddMember("Abla Amen Soudy");
            GROUPS.Add(g4);

            Group g5 = new Group();
            g5.GroupName = "David's Group";
            g5.AddMember("David Ilavsky");
            g5.AddMember("Anthony Akindele");
            g5.AddMember("Manar Namar");
            g5.AddMember("Steven Hansen");
            g5.AddMember("James Pierog-Sheehan");
            g5.AddMember("Matthew Andrews");
            GROUPS.Add(g5);
        }