clean up a bit

This commit is contained in:
Natlinux81
2022-08-17 01:36:42 +02:00
parent 4531f31658
commit b10a792aad
15 changed files with 80 additions and 56 deletions

View File

@@ -39,7 +39,7 @@ namespace Apollon.WPF.ViewModels
}
private string _category;
public string Category
public string Competition
{
get
{
@@ -48,7 +48,7 @@ namespace Apollon.WPF.ViewModels
set
{
_category = value;
OnPropertyChanged(nameof(Category));
OnPropertyChanged(nameof(Competition));
}
}

View File

@@ -22,7 +22,7 @@ namespace Apollon.WPF.ViewModels
{
Organisation = tournament.Organisation,
Tournamentname = tournament.Tournamentname,
Category = tournament.Category,
Competition = tournament.Competition,
Startdate = tournament.Startdate,
Enddate = tournament.Enddate,
Location = tournament.Location,

View File

@@ -17,7 +17,7 @@ namespace Apollon.WPF.ViewModels
public bool HasSelectedTournament => SelectedTournament != null;
public string Organisation => SelectedTournament?.Organisation ?? "keine Organisation";
public string Tournamentname => SelectedTournament?.Tournamentname ?? "kein Name";
public string Category => SelectedTournament?.Category ?? "keine Kategorie";
public string Category => SelectedTournament?.Competition ?? "keine Kategorie";
public string Startdate => SelectedTournament?.Startdate ?? "kein Datum";
public string Enddate => SelectedTournament?.Enddate ?? "kein Datum";
public string Location => SelectedTournament?.Location ?? "kein Ort";

View File

@@ -13,6 +13,7 @@ namespace Apollon.WPF.ViewModels
public Tournament Tournament { get;}
public string Tournamentname => Tournament.Tournamentname;
public string Location => Tournament.Location;
public ICommand DeleteCommand { get; }
public OverviewListingItemViewModel(Tournament tournament)