void SetPartyData() { RetrieveNumberOfSeats(); StandingParties = new List <StandingParty>(); RetrieveNumberOfParties(); for (int i = 0; i < NumberPartiesStanding; i++) { var party = new StandingParty(); Console.WriteLine(); RetrieveName(party); RetrieveNumberOfVotes(party); StandingParties.Add(party); } }
void RetrieveNumberOfVotes(StandingParty party) { var instruction = $"Enter number of votes for {party.Name}: "; party.Votes = GetInputNumeric(instruction); }
void RetrieveName(StandingParty party) { Console.WriteLine("Enter party name: "); party.Name = Console.ReadLine(); }