using Valg.EVA.Skanning.UserInterfaceElements;

namespace Valg.EVA.Skanning.Verify.Startup.VerifyBallotPaper.BallotNumber
{
    public class ElectionContestAffiliationInfoDialogViewModel : ViewModelBase
    {
        private readonly string contestName;
        private readonly string electionName;
        private readonly AffiliationSelection[] contestAffiliations;

        public ElectionContestAffiliationInfoDialogViewModel(string contestName, string electionName, AffiliationSelection[] contestAffiliations)
        {
            this.contestName = contestName;
            this.electionName = electionName;
            this.contestAffiliations = contestAffiliations;
        }

        public string ElectionAndContestHeader
        {
            get
            {
                return string.Format("{0} {1} {2} {3}",
                    Valg.EVA.Skanning.Resources.Language.VerifyLanguageString.ContestAffiliation_Title,
                    electionName,
                    Valg.EVA.Skanning.Resources.Language.LanguageString.In,
                    contestName);
            }
        }

        public AffiliationSelection[] ContestAffiliations
        {
            get { return contestAffiliations; }
        }
    }
}
