Exemple #1
0
        public void No_of_Candidates()
        {
            listCandidates.Clear();

            listCandidates = can.Load();
            foreach (var item in listCandidates)
            {
                totalCandidates = Convert.ToInt32(item.Candidate);
            }
        }
Exemple #2
0
        public void LoadJudgeAndCandidates()
        {
            //Get the number of Judges
            js.Clear();
            js = j.Load();

            foreach (var item in js)
            {
                lblJudges.Text = item.Judge;
            }

            //Get the number of Candidates
            cs.Clear();
            cs = c.Load();

            foreach (var item in cs)
            {
                lblCandidates.Text = item.Candidate;
            }
        }