/// <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; }
public Contest(ContestInfo info, JudgeList judges, ContestantList contestants) { this.Info = info; this.Judges = judges; this.Contestants = contestants; SubContestBranches = new SubContestBranchList(); }
// // Default constructor // public Contest() { Info = new ContestInfo(); Judges = new JudgeList(); Contestants = new ContestantList(); SubContestBranches = new SubContestBranchList(); }
private void PushJudgeList(JudgeList judges, long contestID) { foreach (var judge in judges) { PushJudge(judge, contestID); } }
public ManualJudging(Dive dive, JudgeList judgeList) { InitializeComponent(); this.dive = dive; this.judgeList = judgeList; Setup(); }
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); }