Skip to content

Commit

Permalink
Merge pull request #177 from jwallet/jwallet
Browse files Browse the repository at this point in the history
 fix series crash
  • Loading branch information
jwallet authored Apr 12, 2018
2 parents 8171915 + e416c78 commit 5fc8efd
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 62 deletions.
4 changes: 0 additions & 4 deletions NHLGames/Controls/GameControl.vb
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ Namespace Controls
NHLGamesMetro.RmText.GetString($"enum{_game.GameState.ToString().ToLower()}").ToUpper())
End If

If (Not showLiveScores OrElse Not showSeriesRecord) And _game.GameType.Equals(GameTypeEnum.Series) Then
lblNotInSeason.Text = NHLGamesMetro.RmText.GetString("lblPlayoffs").ToUpper()
End If

ElseIf _game.IsOffTheAir Then
lblHomeScore.Visible = showScores
lblAwayScore.Visible = showScores
Expand Down
131 changes: 97 additions & 34 deletions NHLGames/English.Designer.vb → NHLGames/English1.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 20 additions & 20 deletions NHLGames/French.resx
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,6 @@
<value>Caméra zone {0}</value>
<comment>Game panel</comment>
</data>
<data name="cbEnglish" xml:space="preserve">
<value>English</value>
<comment>Settings tab</comment>
</data>
<data name="cbFrench" xml:space="preserve">
<value>Français</value>
<comment>Settings tab</comment>
</data>
<data name="lblFrenchNetwork" xml:space="preserve">
<value>Stream canadien français</value>
<comment>Game panel</comment>
Expand Down Expand Up @@ -693,18 +685,6 @@
<value>Heure</value>
<comment>Set record panel</comment>
</data>
<data name="cbLiveReplayFeedStart" xml:space="preserve">
<value>Au tout début du stream</value>
<comment>Settings tab</comment>
</data>
<data name="cbLiveReplayGameTime" xml:space="preserve">
<value>Quand l'évènement débute (heure du match)</value>
<comment>Settings tab</comment>
</data>
<data name="cbLiveReplayPuckDrop" xml:space="preserve">
<value>Quand le match commence (puck en jeu)</value>
<comment>Settings tab</comment>
</data>
<data name="lblLiveReplay" xml:space="preserve">
<value>Rejoue en direct</value>
<comment>Settings tab</comment>
Expand All @@ -717,4 +697,24 @@
<value>Temps restant en direct</value>
<comment>Game panel</comment>
</data>
<data name="cbEnglish" xml:space="preserve">
<value>English</value>
<comment>Settings tab</comment>
</data>
<data name="cbFrench" xml:space="preserve">
<value>Français</value>
<comment>Settings tab</comment>
</data>
<data name="cbLiveReplayFeedStart" xml:space="preserve">
<value>Au tout début du stream</value>
<comment>Settings tab</comment>
</data>
<data name="cbLiveReplayGameTime" xml:space="preserve">
<value>Quand l'évènement débute (heure du match)</value>
<comment>Settings tab</comment>
</data>
<data name="cbLiveReplayPuckDrop" xml:space="preserve">
<value>Quand le match commence (puck en jeu)</value>
<comment>Settings tab</comment>
</data>
</root>
2 changes: 1 addition & 1 deletion NHLGames/NHLGames.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
<Compile Include="Controls\OneRecordControl.vb">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="English.Designer.vb">
<Compile Include="English1.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>English.resx</DependentUpon>
Expand Down
2 changes: 1 addition & 1 deletion NHLGames/Utilities/GameFetcher.vb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Namespace Utilities
Private Shared Function SortGames(games As Game()) As List(Of Game)
If NHLGamesMetro.TodayLiveGamesFirst Then
Return games.OrderBy (Of Boolean)(Function(val) val.IsUnplayable).
ThenBy (Of Boolean)(Function(val) val.IsFinal).
ThenBy (Of Boolean)(Function(val) val.IsOffTheAir).
ThenBy (Of Long)(Function(val) val.GameDate.Ticks).ToList()
Else
Return games.OrderBy (Of Boolean)(Function(val) val.IsUnplayable).
Expand Down
4 changes: 2 additions & 2 deletions NHLGames/res/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.2.0.0")>
<Assembly: AssemblyFileVersion("1.2.0.0")>
<Assembly: AssemblyVersion("1.2.0.1")>
<Assembly: AssemblyFileVersion("1.2.0.1")>
<Assembly: NeutralResourcesLanguage("en-CA")>

0 comments on commit 5fc8efd

Please sign in to comment.