示例#1
0
 protected virtual void AddParticipantWithScoreLabel(ITournamentParticipant participant, int x, int y)
 {
     Renderer.AddLabel(new LabelEntity {
         LocationX = x, LocationY = y, Text = participant.Name + ": " + participant.Score.Points
     }, Controls);
 }
 public int CompareTo(ITournamentParticipant other)
 {
     return(Score.Points > other.Score.Points ? 1 : Score.Points < other.Score.Points ? -1 : 0);
 }
示例#3
0
 protected virtual void AddParticipantLabel(ITournamentParticipant participant, int x, int y)
 {
     Renderer.AddLabel(new LabelEntity {
         LocationX = x, LocationY = y, Text = participant.Name
     }, Controls);
 }