private void PlayoffsViewer(HtmlTextWriter writer, Tournament tour) { writer.WriteLine("<h2>{0}</h2>", CultureModule.getContent("tournament_playoffs")); Playoffs plays = (Playoffs)tour.CurrentPhase; if (plays.Lucky != null) { writer.WriteLine("<p>{0}: {1}</p>", CultureModule.getContent("tournament_lucky"), OrionGlobals.getLink(plays.Lucky)); } WriteMatches(writer, plays.Matches); }
private void CheckManagePlayoffs() { if (InvalidTournamentType) { return; } string str = Page.Request.QueryString["AdvancePlayoffs"]; Tournament tour = GetTournament(); if (str != null && tour != null) { Playoffs plays = (Playoffs)tour.CurrentPhase; plays.Advance(); return; } str = Page.Request.QueryString["FinishPlayoffs"]; if (str != null && tour != null) { tour.EndPlayoffs(); } }
private void FinishedViewer(HtmlTextWriter writer, Tournament tour) { writer.WriteLine("<h2>{0}</h2>", CultureModule.getContent("tournament_finished")); Playoffs plays = (Playoffs)tour.CurrentPhase; }