add competition Image to Database
This commit is contained in:
@@ -52,6 +52,20 @@ namespace Apollon.WPF.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private string _competitionImage;
|
||||
public string CompetitionImage
|
||||
{
|
||||
get
|
||||
{
|
||||
return _competitionImage;
|
||||
}
|
||||
set
|
||||
{
|
||||
_competitionImage = value;
|
||||
OnPropertyChanged(nameof(CompetitionImage));
|
||||
}
|
||||
}
|
||||
|
||||
private DateTime _startDate = DateTime.Today;
|
||||
public DateTime StartDate
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Apollon.WPF.ViewModels
|
||||
{
|
||||
Organisation = tournament.Organisation,
|
||||
TournamentName = tournament.TournamentName,
|
||||
Competition = tournament.Competition,
|
||||
Competition = tournament.Competition,
|
||||
StartDate = tournament.StartDate,
|
||||
EndDate = tournament.EndDate,
|
||||
Location = tournament.Location,
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace Apollon.WPF.ViewModels
|
||||
public string Organisation => SelectedTournament?.Organisation ?? "keine Organisation";
|
||||
public string TournamentName => SelectedTournament?.TournamentName ?? "kein Name";
|
||||
public string Competition => SelectedTournament?.Competition ?? "keine Kategorie";
|
||||
public string CompetitionImage => SelectedTournament?.CompetitionImage ?? "kein Bild";
|
||||
public string StartDate => SelectedTournament?.StartDate.ToString("d") ?? "kein Datum";
|
||||
public string EndDate => SelectedTournament?.EndDate.ToString("d") ?? "kein Datum";
|
||||
public string Location => SelectedTournament?.Location ?? "kein Ort";
|
||||
@@ -43,6 +44,7 @@ namespace Apollon.WPF.ViewModels
|
||||
OnPropertyChanged(nameof(Organisation));
|
||||
OnPropertyChanged(nameof(TournamentName));
|
||||
OnPropertyChanged(nameof(Competition));
|
||||
OnPropertyChanged(nameof(CompetitionImage));
|
||||
OnPropertyChanged(nameof(StartDate));
|
||||
OnPropertyChanged(nameof(EndDate));
|
||||
OnPropertyChanged(nameof(Location));
|
||||
|
||||
Reference in New Issue
Block a user