public void SelectPremier() { ElectionResult biggest = null; foreach (ElectionResult party in Parties) { if (biggest == null || party.Votes > biggest.Votes) { biggest = party; } } Premier = biggest.Party.LeadCandidate; }
public void AddResult(ElectionResult result) { results.Add(result); }