コード例 #1
0
ファイル: Tournament.cs プロジェクト: MilenPavlov/EuroManager
 protected Tournament(Competition competition, string name, int level)
 {
     World = competition.World;
     Competition = competition;
     Name = name;
     Level = level;
 }
コード例 #2
0
        protected CompetitionSeason(Competition competition, DateTime startDate, DateTime endDate)
        {
            World = competition.World;
            Competition = competition;
            StartDate = startDate;
            EndDate = endDate;

            IsActive = true;
        }
コード例 #3
0
ファイル: Cup.cs プロジェクト: MilenPavlov/EuroManager
        public Cup(Competition competition, string name, int level, DayOfWeek dayOfWeek, int frequency, IEnumerable<CupStage> stages)
            : base(competition, name, level)
        {
            DayOfWeek = dayOfWeek;
            Frequency = frequency;

            Stages = stages.ToList();

            for (int i = 0; i < Stages.Count; i++)
            {
                Stages[i].StageNumber = i + 1;
            }
        }