Add a Tournament

This commit is contained in:
Natlinux81
2022-08-18 04:13:30 +02:00
parent b40ef92e4b
commit 99c3bd58e1
3 changed files with 25 additions and 22 deletions

View File

@@ -16,7 +16,7 @@ namespace Apollon.WPF.ViewModels
public OverviewDetailsViewModel OverviewDetailsViewModel{ get; }
public ICommand AddTournamentCommand { get; }
public ICommand EditTournamentCommand { get; set ; }
public ICommand EditTournamentCommand { get;}
@@ -28,12 +28,6 @@ namespace Apollon.WPF.ViewModels
AddTournamentCommand = new OpenAddTournamentCommand(tournamentStore, modalNavigationStore);
EditTournamentCommand = new OpenEditTournamentCommand(modalNavigationStore);
AddTournament(new Tournament("DSB", "Deutschemeisterschaft3", "Halle", DateTime.Now, DateTime.Today, "Bruchsal", 6), modalNavigationStore);
}
private void AddTournament(Tournament tournament, ModalNavigationStore modalNavigationStore)
{
ICommand editTournamentCommand = new EditTournamentCommand(modalNavigationStore);
}
}