예제 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="info">Object containing info about contest</param>
 /// <param name="judges">List of judges</param>
 /// <param name="contestants">list of contestants</param>
 public Contest(ContestInfo info, JudgeList judges, ContestantList contestants, SubContestBranchList subContestBranches)
 {
     this.Info               = info;
     this.Judges             = judges;
     this.Contestants        = contestants;
     this.SubContestBranches = subContestBranches;
 }
예제 #2
0
 public Contest(ContestInfo info, JudgeList judges, ContestantList contestants)
 {
     this.Info          = info;
     this.Judges        = judges;
     this.Contestants   = contestants;
     SubContestBranches = new SubContestBranchList();
 }
예제 #3
0
 //
 // Default constructor
 //
 public Contest()
 {
     Info               = new ContestInfo();
     Judges             = new JudgeList();
     Contestants        = new ContestantList();
     SubContestBranches = new SubContestBranchList();
 }
예제 #4
0
 private void PushJudgeList(JudgeList judges, long contestID)
 {
     foreach (var judge in judges)
     {
         PushJudge(judge, contestID);
     }
 }
예제 #5
0
        public ManualJudging(Dive dive, JudgeList judgeList)
        {
            InitializeComponent();

            this.dive      = dive;
            this.judgeList = judgeList;

            Setup();
        }
예제 #6
0
        public JudgeList FetchJudges()
        {
            DataTable judgeDataTable = FetchSpecifiedRole("judge");

            // Iterate through data table and add too person list
            JudgeList judgeList = new JudgeList();

            foreach (DataRow row in judgeDataTable.Rows)
            {
                Judge judge = new Judge
                {
                    ID        = Int32.Parse(row["id"].ToString()),
                    FirstName = row["firstName"].ToString(),
                    LastName  = row["lastName"].ToString(),
                    Age       = Int32.Parse(row["age"].ToString()),
                    Gender    = row["gender"].ToString(),
                    Email     = row["email"].ToString()
                };

                judgeList.Add(judge);
            }

            return(judgeList);
        }