overview details not refresh

This commit is contained in:
Natlinux81
2022-08-21 00:14:04 +02:00
parent 6b0057b68a
commit 665a9750e4
3 changed files with 30 additions and 10 deletions

View File

@@ -33,8 +33,14 @@ namespace Apollon.WPF.Stores
_tournamentStore = tournamentstore;
_tournamentStore.TournamentUpdated += TournamentStore_TournamentUpdated;
_tournamentStore.TournamentAdded += TournamentStore_TournamentAdded;
}
private void TournamentStore_TournamentAdded(Tournament tournament)
{
SelectedTournament = tournament;
}
private void TournamentStore_TournamentUpdated(Tournament tournament)
{
if(tournament.Id == SelectedTournament?.Id)