We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7fb275 commit 7d50be9Copy full SHA for 7d50be9
1 file changed
src/Codebreaker.WinUI/Views/Components/GameResultDisplay.xaml.cs
@@ -4,7 +4,9 @@
4
5
namespace CodeBreaker.WinUI.Views.Components;
6
7
-public sealed partial class GameResultDisplay : UserControl, IRecipient<GameEndedMessage>
+public sealed partial class GameResultDisplay : UserControl,
8
+ IRecipient<GameEndedMessage>,
9
+ IRecipient<GameStartedMessage>
10
{
11
public GameResultDisplay()
12
@@ -25,4 +27,7 @@ public GamePageViewModel ViewModel
25
27
26
28
public void Receive(GameEndedMessage message) =>
29
this.GoToState(message.IsVictory ? "Won" : "Lost");
30
+
31
+ public void Receive(GameStartedMessage message) =>
32
+ this.GoToState("Default");
33
}
0 commit comments