own try :)

This commit is contained in:
Natlinux81
2022-08-21 01:50:54 +02:00
parent 665a9750e4
commit 145b104226
3 changed files with 8 additions and 2 deletions

View File

@@ -34,8 +34,14 @@ namespace Apollon.WPF.Stores
_tournamentStore.TournamentUpdated += TournamentStore_TournamentUpdated; _tournamentStore.TournamentUpdated += TournamentStore_TournamentUpdated;
_tournamentStore.TournamentAdded += TournamentStore_TournamentAdded; _tournamentStore.TournamentAdded += TournamentStore_TournamentAdded;
_tournamentStore.TournamentDeleted += TournamentStore_TournamentDeleted;
} }
private void TournamentStore_TournamentDeleted(Guid id)
{
SelectedTournament = null;
}
private void TournamentStore_TournamentAdded(Tournament tournament) private void TournamentStore_TournamentAdded(Tournament tournament)
{ {
SelectedTournament = tournament; SelectedTournament = tournament;

View File

@@ -12,7 +12,7 @@
CornerRadius="10"> CornerRadius="10">
</Border> </Border>
<TextBlock Text="klicke auf neues Turnier erstellen oder wähle ein vorhandenes Turnier um es zu bearbeiten!" <TextBlock Text="klicke auf neues Turnier vorbereiten oder wähle ein vorhandenes Turnier um es zu bearbeiten!"
TextAlignment="Center" TextAlignment="Center"
VerticalAlignment="Center" VerticalAlignment="Center"
FontFamily="Arial" FontFamily="Arial"

View File

@@ -108,7 +108,7 @@
DataContext="{Binding OverviewDetailsViewModel}"/> DataContext="{Binding OverviewDetailsViewModel}"/>
<Button Style="{StaticResource ModernButton}" <Button Style="{StaticResource ModernButton}"
Content="Turnier bearbeiten" Content="Namensliste"
FontSize="16" FontSize="16"
Height="40" Height="40"
Width="210" Width="210"