public void CreateTournament() { // Create our tournament model TournamentModel tm = new TournamentModel { TournamentName = TournamentName, EntryFee = EntryFee, Prizes = SelectedPrizes.ToList(), EnteredTeams = SelectedTeams.ToList() }; // TODO - Wire our matchups TournamentLogic.CreateRounds(tm); // Create Tournament entry // Create all of the prizes entries // Create all of the teams entries GlobalConfig.Connection.CreateTournament(tm); tm.AlertUsersToNewRound(); EventAggregationProvider.TrackerEventAggregator.PublishOnUIThread(tm); TryClose(); }
public void Handle(PrizeModel message) { if (!String.IsNullOrWhiteSpace(message.PlaceName)) { SelectedPrizes.Add(message); } SelectedPrizesIsVisible = true; AddPrizeIsVisible = false; }
public void RemovePrize() { SelectedPrizes.Remove(SelectedPrizeToRemove); }