clean up a bit
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user