public override int GetHashCode() { unchecked { int hash = 23; hash = hash * 37 + (Home != null ? Home.GetHashCode() : 0); hash = hash * 37 + (Away != null ? Away.GetHashCode() : 0); hash = hash * 37 + (ShortHome != null ? ShortHome.GetHashCode() : 0); hash = hash * 37 + (ShortAway != null ? ShortAway.GetHashCode() : 0); hash = hash * 37 + HomeScore.GetHashCode(); hash = hash * 37 + AwayScore.GetHashCode(); hash = hash * 37 + HomeFouls.GetHashCode(); hash = hash * 37 + AwayFouls.GetHashCode(); hash = hash * 37 + Period.GetHashCode(); hash = hash * 37 + PeriodType.GetHashCode(); hash = hash * 37 + IsTeamEdit.GetHashCode(); hash = hash * 37 + IsEndGame.GetHashCode(); hash = hash * 37 + HomeColor.GetHashCode(); hash = hash * 37 + AwayColor.GetHashCode(); hash = hash * 37 + (HomeLogo != null ? HomeLogo.GetHashCode() : 0); hash = hash * 37 + (AwayLogo != null ? AwayLogo.GetHashCode() : 0); hash = hash * 37 + (Configuration != null ? Configuration.GetHashCode() : 0); return(hash); } }
public override string ToString() { return(string.Format(CultureInfo.InvariantCulture, "{0} {1} {2}-{3} {4} {5} {6}", GameStatus.PadRight(10), (Away + (Possession == Away ? (RedZone ? "*" : ".") : " ")).PadLeft(4), AwayScore.ToString(CultureInfo.InvariantCulture).PadLeft(2), HomeScore.ToString(CultureInfo.InvariantCulture).PadRight(2), ((Possession == Home ? (RedZone ? "*" : ".") : " ") + Home).PadRight(4), Spread.ToString("+0.0;-0.0;PK ", CultureInfo.InvariantCulture).PadLeft(5), (ConfidencePoolAnalyzer.SmartRound(100 * HomeWinPct, 2) + "%").PadLeft(8) ) + (HomeWinPct != PrevHomeWinPct ? " (PREV: " + (ConfidencePoolAnalyzer.SmartRound(100 * PrevHomeWinPct, 2) + "%)").PadLeft(9) : "")); }
private string GamePredictionOut(Game game) { return($@"{ Game.GameDate.ToString("yyyy-MM-dd HH:mm") } { StringUtils.StringOfSize(4,game.AwayTeam) } { StringUtils.PadLeft( 3, AwayScore.ToString() ) } @ { StringUtils.StringOfSize(4, game.HomeTeam) } { StringUtils.PadLeft(3, HomeScore.ToString() ) }"); }
void ReleaseDesignerOutlets() { if (AwayImage != null) { AwayImage.Dispose(); AwayImage = null; } if (AwayScore != null) { AwayScore.Dispose(); AwayScore = null; } if (AwayTeamName != null) { AwayTeamName.Dispose(); AwayTeamName = null; } if (HomeImage != null) { HomeImage.Dispose(); HomeImage = null; } if (HomeTeamName != null) { HomeTeamName.Dispose(); HomeTeamName = null; } if (HomsScore != null) { HomsScore.Dispose(); HomsScore = null; } if (Time != null) { Time.Dispose(); Time = null; } }
void ReleaseDesignerOutlets() { if (AwayScore != null) { AwayScore.Dispose(); AwayScore = null; } if (AwayTeam != null) { AwayTeam.Dispose(); AwayTeam = null; } if (Date != null) { Date.Dispose(); Date = null; } if (HomeScore != null) { HomeScore.Dispose(); HomeScore = null; } if (HomeTeam != null) { HomeTeam.Dispose(); HomeTeam = null; } if (Indicator != null) { Indicator.Dispose(); Indicator = null; } if (Time != null) { Time.Dispose(); Time = null; } }