Beispiel #1
0
 private static void LoadJudges(string skinFolder)
 {
     foreach (JudgementValue judge in Judgement.Judgements)
     {
         Judges.Add(judge.Score, LoadTexture($"{skinFolder}Judgements/", judge.Name));
     }
 }
Beispiel #2
0
 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();
 }
Beispiel #4
0
 /// <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);
 }
Beispiel #5
0
 /// <summary>
 /// Lägg till en domare på eventet
 /// </summary>
 /// <param name="judge"></param>
 public void AddJudge(Judge judge)
 {
     Judges.Add(judge);
 }