/// <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)); }
/// <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) { }
/// <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)) { }
/// <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)) { }
/// <summary> /// Erstellt eine neue Fußballliga /// </summary> /// <param name="roundMode">Rundenmodus der Liga</param> public FootballLeague(ELeagueRoundMode roundMode) : this(roundMode, new FootballTeamCollection()) { }
/// <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)); }
/// <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)) { }