예제 #1
0
        /// <summary>
        /// Erstellt eine neue Fußballliga
        /// </summary>
        /// <param name="id">ID der Liga</param>
        /// <param name="name">Name der Liga</param>
        /// <param name="roundMode">Rundenmodus der Liga</param>
        /// <param name="teams">Teams der Liga</param>
        public FootballLeague(int id, string name, ELeagueRoundMode roundMode, FootballTeamCollection teams)
            : base(id, name)
        {
            RoundMode = roundMode;
            Teams     = teams;

            SimpleLog.Log(String.Format("Create Football League: {0}", ToString()));

            Matches = new ObservableCollection <FootballMatch>();
            CreateMatches();
            CreateTable();

            SimpleLog.Log(String.Format("Football League created with ID={0}", ID));
        }
예제 #2
0
		/// <summary>
		/// Erstellt eine neue Fußballliga
		/// </summary>
		/// <param name="roundMode">Rundenmodus der Liga</param>
		/// <param name="teams">Teams der Liga</param>
		public FootballLeague(ELeagueRoundMode roundMode, FootballTeamCollection teams)
			: this(new Guid().GetHashCode(), String.Empty, roundMode, teams)
		{ }
예제 #3
0
		/// <summary>
		/// Erstellt eine neue Fußballliga
		/// </summary>
		/// <param name="roundMode">Rundenmodus der Liga</param>
		/// <param name="teams">Teams der Liga</param>
		public FootballLeague(ELeagueRoundMode roundMode, List<FootballTeam> teams)
			: this(roundMode, new FootballTeamCollection(teams))
		{ }
예제 #4
0
		/// <summary>
		/// Erstellt eine neue Fußballliga
		/// </summary>
		/// <param name="roundMode">Rundenmodus der Liga</param>
		/// <param name="teams">Teams der Liga</param>
		public FootballLeague(ELeagueRoundMode roundMode, params FootballTeam[] teams)
			: this(roundMode, new FootballTeamCollection(teams))
		{ }
예제 #5
0
		/// <summary>
		/// Erstellt eine neue Fußballliga
		/// </summary>
		/// <param name="roundMode">Rundenmodus der Liga</param>
		public FootballLeague(ELeagueRoundMode roundMode)
			: this(roundMode, new FootballTeamCollection())
		{ }
예제 #6
0
		/// <summary>
		/// Erstellt eine neue Fußballliga
		/// </summary>
		/// <param name="id">ID der Liga</param>
		/// <param name="name">Name der Liga</param>
		/// <param name="roundMode">Rundenmodus der Liga</param>
		/// <param name="teams">Teams der Liga</param>
		public FootballLeague(int id, string name, ELeagueRoundMode roundMode, FootballTeamCollection teams)
			: base(id, name)
		{
			RoundMode = roundMode;
			Teams = teams;

			SimpleLog.Log(String.Format("Create Football League: {0}", ToString()));

			Matches = new ObservableCollection<FootballMatch>();
			CreateMatches();
			CreateTable();

			SimpleLog.Log(String.Format("Football League created with ID={0}", ID));
		}
예제 #7
0
 /// <summary>
 /// Erstellt eine neue Fußballliga
 /// </summary>
 /// <param name="roundMode">Rundenmodus der Liga</param>
 /// <param name="teams">Teams der Liga</param>
 public FootballLeague(ELeagueRoundMode roundMode, FootballTeamCollection teams)
     : this(new Guid().GetHashCode(), String.Empty, roundMode, teams)
 {
 }
예제 #8
0
 /// <summary>
 /// Erstellt eine neue Fußballliga
 /// </summary>
 /// <param name="roundMode">Rundenmodus der Liga</param>
 /// <param name="teams">Teams der Liga</param>
 public FootballLeague(ELeagueRoundMode roundMode, List <FootballTeam> teams)
     : this(roundMode, new FootballTeamCollection(teams))
 {
 }
예제 #9
0
 /// <summary>
 /// Erstellt eine neue Fußballliga
 /// </summary>
 /// <param name="roundMode">Rundenmodus der Liga</param>
 /// <param name="teams">Teams der Liga</param>
 public FootballLeague(ELeagueRoundMode roundMode, params FootballTeam[] teams)
     : this(roundMode, new FootballTeamCollection(teams))
 {
 }
예제 #10
0
 /// <summary>
 /// Erstellt eine neue Fußballliga
 /// </summary>
 /// <param name="roundMode">Rundenmodus der Liga</param>
 public FootballLeague(ELeagueRoundMode roundMode)
     : this(roundMode, new FootballTeamCollection())
 {
 }