예제 #1
0
 public AthletePerfomance(bool isOutOfCompetition, FederationMember athlete, Competition competition, AgeCategory ageCategory, PerfomanceCategory perfomanceCategory, EvaluationList evaluationList, FederationMember partner)
 {
     this.Id = new Guid();
     this.IsOutOfCompetition = isOutOfCompetition;
     this.Athlete = athlete;
     this.Competition = competition;
     this.AgeCategory = ageCategory;
     this.PerfomanceCategory = perfomanceCategory;
     this.EvaluationList = evaluationList;
     if (partner != null)
     {
         this.Partner = partner;
     }
 }
예제 #2
0
        public AthletePerfomance(Guid id, string platformNumber, string place, string perfomanceNumber, bool isOutOfCompetition, FederationMember athlete, Competition competition, AgeCategory ageCategory, PerfomanceCategory perfomanceCategory, EvaluationList evaluationList, JudgingPanel judgingPanel, FederationMember partner)
            : this(isOutOfCompetition, athlete, competition, ageCategory, perfomanceCategory, evaluationList, partner)
        {
            this.Id = id;
            if (platformNumber != null)
            {
                this.PlatformNumber = platformNumber;
            }

            if (place != null)
            {
                this.Place = place;
            }

            if (perfomanceNumber != null)
            {
                this.PerfomanceNumber = perfomanceNumber;
            }

            if (judgingPanel != null)
            {
                this.JudgingPanel = judgingPanel;
            }
        }