Exemple #1
0
        public BallotMessage PickMessage(int index)
        {
            BallotMessage message = (BallotMessage)ballotMessages[index].Clone();

            ballotMessages.RemoveAt(index);
            return(message);
        }
Exemple #2
0
 public void AddMessageToBallot(Kingdom sender, Kingdom receiver, string message)
 {
     if (!CompetingKingdom.Contains(receiver))
     {
         BallotBox.Add(BallotMessage.Create(sender, receiver, message));
     }
 }
Exemple #3
0
 public void Add(BallotMessage message)
 {
     if (!this.ballotMessages.Contains(message))
     {
         this.ballotMessages.Add(message);
     }
 }