public BallotMessage PickMessage(int index) { BallotMessage message = (BallotMessage)ballotMessages[index].Clone(); ballotMessages.RemoveAt(index); return(message); }
public void AddMessageToBallot(Kingdom sender, Kingdom receiver, string message) { if (!CompetingKingdom.Contains(receiver)) { BallotBox.Add(BallotMessage.Create(sender, receiver, message)); } }
public void Add(BallotMessage message) { if (!this.ballotMessages.Contains(message)) { this.ballotMessages.Add(message); } }