Esempio n. 1
0
 /// <summary>
 /// Creates a new Contest with predetermined teams.
 /// </summary>
 /// <param name="id">Numeric indentifier for the contest.</param>
 /// <param name="name">Contest Name.<param>
 /// <param name="description">Contest Description.</param>
 /// <param name="points">Points to be distributed to the winner(s).</param>
 /// <param name="mode">Contest mode for determining termination.</param>
 /// <param name="type">Contest type (group or individual)</param>
 /// <param name="start">Time to start the contest.</param>
 /// <param name="end">End Conditions to be observed.</param>
 /// <param name="statistic">Statistic on which the Contest is based.</param>
 /// <param name="teams">Teams participating in the Contest.</param>
 protected Contest(int id, string name, string description, int points,
     ContestEndMode mode, ContestType type, DateTime start, EndCondition end, 
     Statistic statistic, List<Team> teams)
     : this(name, description, points, mode, type, start, end, statistic)
 {
     this.Teams = teams;
 }
Esempio n. 2
0
        /// <summary>
        /// Creates a new Contest.
        /// </summary>
        /// <param name="id">Numeric indentifier for the contest.</param>
        /// <param name="name">Contest Name.<param>
        /// <param name="description">Contest Description.</param>
        /// <param name="points">Points to be distributed to the winner(s).</param>
        /// <param name="mode">Contest mode for determining termination.</param>
        /// <param name="type">Contest type (group or individual)</param>
        /// <param name="start">Time to start the contest.</param>
        /// <param name="end">End Conditions to be observed.</param>
        /// <param name="statistic">Statistic on which the Contest is based.</param>
        public Contest(string name, string description, int points,
            ContestEndMode mode, ContestType type, DateTime start, EndCondition end, 
            Statistic statistic)
        {
            this.Name = name;
            this.Description = description;
            this.Points = points;
            this.Mode = mode;
            this.Type = type;
            this.StartTime = start;
            this.EndCondition = end;
            this.StatisticBinding = statistic;

            this.Teams = new List<Team>();
        }