コード例 #1
0
        public static void SaveFinishedTournamendToDB(ITournament tournament, String username)
        {
            TournamentDL tdl = new TournamentDL();

            tdl.UpdateTournament(new TournamentPers(tournament.Name, username, tournament.GameMode.ToString(),
                                                    tournament.AmountSets, tournament.AmountGoalsperSet, tournament.IsRanked, true));
        }
コード例 #2
0
        public static void AddTournament(String turniername, String username, String gamemode, int amountSets,
                                         int amountGoals, bool isRanked)
        {
            TournamentDL tdl = new TournamentDL();

            tdl.CreateTournament(new TournamentPers(turniername, username, gamemode, amountSets, amountGoals, isRanked,
                                                    false));
        }
コード例 #3
0
        public static TournamentPers FindTournament(String turniername)
        {
            TournamentDL tdl = new TournamentDL();

            return(tdl.FindTournament(turniername));
        }