using Valg.EVA.Skanning.UserInterfaceElements.FilterControls;

namespace Valg.EVA.Skanning.Verify.Startup.VerifyBallotPaper.WriteIns
{
    public class WriteInSelectionItem : ISearchItem
    {
        public string AffiliationId { get; set; }

        public string AffiliationShortCode { get; set; }

        public string CandidateName { get; set; }

        public bool Selected { get; set; }

        public string DisplayValue
        {
            get { return SearchValue; }
        }

        public string SearchValue
        {
            get { return string.Format("{0} ({1})", CandidateName, AffiliationId); }
        }

        public override string ToString()
        {
            return string.Format("{0}: {1}", DisplayValue, Selected);
        }


        public int RankInAffiliation { get; set; }
    }
}
