selected Tournament changed

This commit is contained in:
Natlinux81
2022-08-12 03:15:29 +02:00
parent bfe404fbc7
commit e98978a02a
5 changed files with 31 additions and 14 deletions

View File

@@ -18,8 +18,8 @@ namespace Apollon.WPF.ViewModels
public string Organisation => _selectedTournament?.Organisation ?? "keine Organisation";
public string Tournamentname => _selectedTournament?.Tournamentname ?? "kein Name";
public string Category => _selectedTournament?.Category ?? "keine Kategorie";
//public DateTime Startdate => _selectedTournament?.Startdate ?? DateTime.MinValue;
//public DateTime Enddate => _selectedTournament?.Enddate ?? DateTime.MinValue;
public string Startdate => _selectedTournament?.Startdate ?? "kein Datum";
public string Enddate => _selectedTournament?.Enddate ?? "kein Datum";
public string Location => _selectedTournament?.Location ?? "kein Ort";
public ApollonOverviewDetailsViewModel(SelectedTournamentStore selectedTournamentStore)
@@ -41,6 +41,8 @@ namespace Apollon.WPF.ViewModels
OnPropertyChanged(nameof(Organisation));
OnPropertyChanged(nameof(Tournamentname));
OnPropertyChanged(nameof(Category));
OnPropertyChanged(nameof(Startdate));
OnPropertyChanged(nameof(Enddate));
OnPropertyChanged(nameof(Location));
}
}

View File

@@ -39,9 +39,9 @@ namespace Apollon.WPF.ViewModels
_selectedTournamentStore = selectedTournamentStore;
_apollonOverviewListingItemViewModels = new ObservableCollection<ApollonOverviewListingItemViewModel>();
_apollonOverviewListingItemViewModels.Add(new ApollonOverviewListingItemViewModel(new Tournament("DSB", "Deutschemeisterschaft1", "Halle", "Wiesbaden")));
_apollonOverviewListingItemViewModels.Add(new ApollonOverviewListingItemViewModel(new Tournament("DSB", "Deutschemeisterschaft2", "im Freien", "Berlin")));
_apollonOverviewListingItemViewModels.Add(new ApollonOverviewListingItemViewModel(new Tournament("DSB", "Deutschemeisterschaft3", "Halle", "Bruchsal")));
_apollonOverviewListingItemViewModels.Add(new ApollonOverviewListingItemViewModel(new Tournament("DSB", "Deutschemeisterschaft1", "Halle", "01.01.2021", "05.01.2021", "Wiesbaden")));
_apollonOverviewListingItemViewModels.Add(new ApollonOverviewListingItemViewModel(new Tournament("DSB", "Deutschemeisterschaft2", "im Freien", "01.01.2021", "05.01.2021", "Berlin")));
_apollonOverviewListingItemViewModels.Add(new ApollonOverviewListingItemViewModel(new Tournament("DSB", "Deutschemeisterschaft3", "Halle", "01.01.2021", "05.01.2021", "Bruchsal")));
}
}