private static void LoadJudges(string skinFolder) { foreach (JudgementValue judge in Judgement.Judgements) { Judges.Add(judge.Score, LoadTexture($"{skinFolder}Judgements/", judge.Name)); } }
public void AddJudge(Judge newJudge) { if (newJudge == null) { throw new ArgumentNullException(nameof(newJudge)); } Judges.Add(newJudge); }
public void AddJudge(Judge judge) { if (judge == null) { throw new ArgumentException("Judge must be set"); } if (judge.TournamentId == 0) { throw new ArgumentException("Tournament ID must be set"); } Judges.Add(judge); SaveChanges(); }
/// <summary> /// Add a judge to the contest. /// </summary> /// <param name="judgeMember">The judge to add</param> public void AddJudge(JudgeMember judgeMember) { Judges.Add(judgeMember); JudgesToAdd.Add(judgeMember); }
/// <summary> /// Lägg till en domare på eventet /// </summary> /// <param name="judge"></param> public void AddJudge(Judge judge) { Judges.Add(judge); }