private void ViewTournament(object sender, RoutedEventArgs e) { var selection = grdTournaments.SelectedItem as Tournament; if (selection != null) { var detailView = new TournamentDetails(); detailView.Initialize(selection.ID); MainWindow.LoadView(detailView); } }
public string PrepareChampionshipText(TournamentDetails details) { string message = "{{teamName}} competition will be at {{locationName}}, everyone should arrive at {{arrivalTime}} "; message = message .Replace("{{teamName}}", details.TeamName) .Replace("{{locationName}}", details.LocationName) .Replace("{{arrivalTime}}", details.StartTime); return(message); }
void Init() { InitData(); InitPlayerRankings(); InitEnterPlayerNames(); InitRegisteredPlayers(); InitTeamsRegisteredPlayers(); InitPools(); InitJudges(); InitExport(); TournamentDetails.Init(this); }
public IEnumerator updateDetails(TournamentDetails newDetails, Async thread = null) { var transactionRequest = new TransactionSignedUnityRequest(NetworkSettings.infuraProvider, NetworkSettings.currentPrivateKey); yield return(transactionRequest.SignAndSendTransaction <UpdateDetailsFunction>(new UpdateDetailsFunction() { TDetails = newDetails, Gas = NetworkSettings.txGas, GasPrice = NetworkSettings.txGasPrice }, address)); var getTransactionStatus = new Utils.CoroutineWithData <bool>(MatryxCortex.Instance, Utils.GetTransactionStatus(transactionRequest, "createSubmission", thread)); yield return(getTransactionStatus); yield return(getTransactionStatus.result); }
public string PrepareChampionshipEmail(TournamentDetails details) { var message = "<p>Hi {{TeamName}} Athletes, Athletes family, Coaches and Volunteers:<br /></p><p style=\"margin-left:30px;\"><strong>Everyone should be there at {{StartTime}}.</strong><br /><br />The first game is at {{FirstGame}}.<br /><br />The second game is at {{SecondGame}}.<br /><br /><br />The competition will be at {{LocationName}} ({{LocationAddress}}, {{LocationCity}}, {{LocationState}} {{LocationZip}} )<br /><br /><br /><p style=\"margin-left:30px;\">You must return your uniform to your coach RIGHT AFTER SATURDAY’S COMPETITION. Remember bring a change of clothes. Failure to return your uniform may reflect on your athlete being selected for future Basketball Championships. There will also be a charge of $30 for jersey and $20 for shorts for all uniforms not returned at that time.<br /><br /><em>Remember no food or drinks are allowed in the Gymnasiums, only water.</em><br /><br /><br />Let me know if you have any questions.<br /><br /><br /></p><p>Van <br /><br /><br />L. A. Van Lowe <br /><br />Basketball Coordinator <br /><br /><br />P. O. 1073 <br /><br />Woodbridge, VA 22195-1073 <br /><br />Fax: (866) 558-8780 <br /></p> "; string secondGame = details.SecondGameTime; if (details.OrGameTime != null) { secondGame += " or " + details.OrGameTime; } message = message.Replace("{{TeamName}}", details.TeamName); message = message.Replace("{{StartTime}}", details.StartTime); message = message.Replace("{{FirstGame}}", details.FirstGameTime); message = message.Replace("{{SecondGame}}", secondGame); message = message.Replace("{{LocationName}}", details.LocationName); message = message.Replace("{{LocationAddress}}", details.LocationAddress); message = message.Replace("{{LocationCity}}", details.LocationCity); message = message.Replace("{{LocationState}}", details.LocationState); message = message.Replace("{{LocationZip}}", details.LocationZip); return(message); }
public TournamentDetails PrepareChampionshipDetails(TournamentTeamDto dto) { var location = _referenceRepository.GetLocationByLocationId(dto.LocationId); var details = new TournamentDetails { FirstGameTime = _referenceRepository.GetTimeByTimeId(dto.Game1TimeId).Result.TimeHour, LocationAddress = location.Result.Street, LocationCity = location.Result.City, LocationName = location.Result.Name, LocationState = location.Result.State, LocationZip = location.Result.Zip, TeamName = _referenceRepository.GetTeamByTeamId(dto.TeamId).Result.Name, SecondGameTime = _referenceRepository.GetTimeByTimeId(dto.Game2TimeId).Result.TimeHour, StartTime = _referenceRepository.GetTimeByTimeId(dto.Game1TimeId - 1).Result.TimeHour, }; if (dto.OrTimeId != 0) { details.OrGameTime = _referenceRepository.GetTimeByTimeId(dto.OrTimeId).Result.TimeHour; } return(details); }
public static IEnumerator createTournament(MatryxTournament tournament, Async thread = null) { TournamentDetails tDetails = new TournamentDetails() { ContentHash = tournament.contentHash, Bounty = tournament.bounty, EntryFee = tournament.entryFee, }; var createTournamentFnMsg = new CreateTournamentFunction() { TDetails = tDetails, RDetails = tournament.rounds[0].Details, Gas = NetworkSettings.txGas, GasPrice = NetworkSettings.txGasPrice }; var transactionRequest = new TransactionSignedUnityRequest(NetworkSettings.infuraProvider, NetworkSettings.currentPrivateKey); yield return(transactionRequest.SignAndSendTransaction <CreateTournamentFunction>(createTournamentFnMsg, address)); var getTransactionStatus = new Utils.CoroutineWithData <bool>(MatryxCortex.Instance, Utils.GetTransactionStatus(transactionRequest, "createTournament", thread)); yield return(getTransactionStatus); yield return(getTransactionStatus.result); }