示例#1
0
        public void SetCandidates(List <Candidate> candidates)
        {
            //Set chosen candidates
            _candidates = candidates;
            CandidateList.ClearCandidates();

            CandidateList.AddCandidates(candidates);

            //If no candidates chosen, display info
            NoCandidatesTextBlock.Visibility = candidates.Count == 0 ? Visibility.Visible : Visibility.Collapsed;
        }
示例#2
0
 public void ClearCandidates()
 {
     //Clear chosen candidates
     _candidates = null;
     CandidateList.ClearCandidates();
 }