Пример #1
0
 public void NextSession()
 {
     List<Voter> tempList = currentEvent.GetValidVoters();
     currentEvent = new VoteEvent(voteEvents++, "Followed Collection", tempList);
     EventProvider.AddEvent(ref currentEvent);
     currentEvent.AddCandidate(new Candidate(0, "A"));
     currentEvent.AddCandidate(new Candidate(1, "B"));
 }
Пример #2
0
 public void NewSession()
 {
     currentEvent = new VoteEvent(voteEvents++, "New Round");
     EventProvider.AddEvent(ref currentEvent);
     currentEvent.AddCandidate(new Candidate(0, "A"));
     currentEvent.AddCandidate(new Candidate(1, "B"));
     started = false;
 }
Пример #3
0
 public static void AddEvent(ref VoteEvent v)
 {
     myEvents.Add(v);
 }