refill not works
This commit is contained in:
@@ -45,34 +45,19 @@ namespace Apollon.WPF.ViewModels
|
||||
_modalNavigationStore = modalNavigationStore;
|
||||
_overviewListingItemViewModels = new ObservableCollection<OverviewListingItemViewModel>();
|
||||
|
||||
_tournamentStore.TournamentAdded += _tournamentStore_TournamentAdded;
|
||||
//_overviewListingItemViewModels.Add(new OverviewListingItemViewModel(new Tournament("DSB", "Meisterschaft", "Halle", DateTime.Now, DateTime.Now, "Bruchsal", 10)));
|
||||
|
||||
|
||||
//AddTournament(new Tournament("DSB", "Deutschemeisterschaft1", "Halle", "01.01.2021", "05.01.2021", "Wiesbaden",3),modalNavigationStore);
|
||||
//AddTournament(new Tournament("DSB", "Deutschemeisterschaft2", "im Freien", "01.01.2021", "05.01.2021", "Berlin",5),modalNavigationStore);
|
||||
//AddTournament(new Tournament("DSB", "Deutschemeisterschaft3", "Halle", "01.01.2021", "05.01.2021", "Bruchsal", 6),modalNavigationStore);
|
||||
|
||||
AddTournament(new Tournament("DSB", "Deutschemeisterschaft3", "Halle", DateTime.Now, DateTime.Today, "Bruchsal", 6), modalNavigationStore);
|
||||
|
||||
}
|
||||
|
||||
protected override void Dispose()
|
||||
private void AddTournament(Tournament tournament, ModalNavigationStore modalNavigationStore)
|
||||
{
|
||||
_tournamentStore.TournamentAdded -= _tournamentStore_TournamentAdded;
|
||||
|
||||
base.Dispose();
|
||||
}
|
||||
|
||||
private void _tournamentStore_TournamentAdded(Tournament tournament)
|
||||
{
|
||||
AddTournament(tournament);
|
||||
}
|
||||
|
||||
private void AddTournament(Tournament tournament)
|
||||
{
|
||||
//ICommand editTournamentCommand = new OpenEditTournamentCommand(_modalNavigationStore);
|
||||
_overviewListingItemViewModels.Add(new OverviewListingItemViewModel(tournament
|
||||
//,editTournamentCommand
|
||||
));
|
||||
// TO DO EditTournamentCommand
|
||||
_overviewListingItemViewModels.Add(new OverviewListingItemViewModel(tournament));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user