implement Rounds

This commit is contained in:
Natlinux81
2022-08-14 17:37:41 +02:00
parent 61f06a6b5d
commit a694685181
6 changed files with 76 additions and 9 deletions

View File

@@ -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
{

View File

@@ -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));
}
}
}

View File

@@ -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)));
}
}