Exemple #1
0
        public void SelectPremier()
        {
            ElectionResult biggest = null;

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