예제 #1
0
 public SeasonDivision(string name, Season season, DivisionLevel level, SeasonDivision parent)
 {
     Name   = name;
     Season = season;
     Level  = level;
     Parent = parent;
     if (parent != null)
     {
         Parent.AddChildDivision(this);
     }
 }
예제 #2
0
        public SeasonDivision(string name, Season season, DivisionLevel level, SeasonDivision parent, IList <SeasonDivision> children, IList <SeasonRanking> ranking)
        {
            Name   = name;
            Season = season;
            Level  = level;
            Parent = parent;
            if (parent != null)
            {
                Parent.AddChildDivision(this);
            }
            if (children != null)
            {
                Children = children;
            }

            if (ranking != null)
            {
                Ranking = ranking;
            }
        }