implement Rounds
This commit is contained in:
@@ -80,6 +80,20 @@ namespace Apollon.WPF.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private int _rounds;
|
||||
public int Rounds
|
||||
{
|
||||
get
|
||||
{
|
||||
return _rounds;
|
||||
}
|
||||
set
|
||||
{
|
||||
_rounds = value;
|
||||
OnPropertyChanged(nameof(Rounds));
|
||||
}
|
||||
}
|
||||
|
||||
private string _location;
|
||||
public string Location
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace Apollon.WPF.ViewModels
|
||||
public string Startdate => SelectedTournament?.Startdate ?? "kein Datum";
|
||||
public string Enddate => SelectedTournament?.Enddate ?? "kein Datum";
|
||||
public string Location => SelectedTournament?.Location ?? "kein Ort";
|
||||
public int Rounds => SelectedTournament?.Rounds ?? 0;
|
||||
|
||||
public OverviewDetailsViewModel(SelectedTournamentStore selectedTournamentStore)
|
||||
{
|
||||
@@ -44,6 +45,7 @@ namespace Apollon.WPF.ViewModels
|
||||
OnPropertyChanged(nameof(Startdate));
|
||||
OnPropertyChanged(nameof(Enddate));
|
||||
OnPropertyChanged(nameof(Location));
|
||||
OnPropertyChanged(nameof(Rounds));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,9 +39,9 @@ namespace Apollon.WPF.ViewModels
|
||||
_selectedTournamentStore = selectedTournamentStore;
|
||||
_apollonOverviewListingItemViewModels = new ObservableCollection<OverviewListingItemViewModel>();
|
||||
|
||||
_apollonOverviewListingItemViewModels.Add(new OverviewListingItemViewModel(new Tournament("DSB", "Deutschemeisterschaft1", "Halle", "01.01.2021", "05.01.2021", "Wiesbaden")));
|
||||
_apollonOverviewListingItemViewModels.Add(new OverviewListingItemViewModel(new Tournament("DSB", "Deutschemeisterschaft2", "im Freien", "01.01.2021", "05.01.2021", "Berlin")));
|
||||
_apollonOverviewListingItemViewModels.Add(new OverviewListingItemViewModel(new Tournament("DSB", "Deutschemeisterschaft3", "Halle", "01.01.2021", "05.01.2021", "Bruchsal")));
|
||||
_apollonOverviewListingItemViewModels.Add(new OverviewListingItemViewModel(new Tournament("DSB", "Deutschemeisterschaft1", "Halle", "01.01.2021", "05.01.2021", "Wiesbaden",3)));
|
||||
_apollonOverviewListingItemViewModels.Add(new OverviewListingItemViewModel(new Tournament("DSB", "Deutschemeisterschaft2", "im Freien", "01.01.2021", "05.01.2021", "Berlin",5)));
|
||||
_apollonOverviewListingItemViewModels.Add(new OverviewListingItemViewModel(new Tournament("DSB", "Deutschemeisterschaft3", "Halle", "01.01.2021", "05.01.2021", "Bruchsal", 6)));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user