add competition Image to Database

This commit is contained in:
Natlinux81
2022-08-28 19:03:24 +02:00
parent dfe0f72d04
commit bbf1e21fdf
13 changed files with 130 additions and 13 deletions

View File

@@ -39,6 +39,7 @@ namespace Apollon.WPF.Commands
detailsViewModel.Organisation,
detailsViewModel.TournamentName,
detailsViewModel.Competition,
detailsViewModel.CompetitionImage,
detailsViewModel.StartDate,
detailsViewModel.EndDate,
detailsViewModel.Location,

View File

@@ -33,6 +33,7 @@ namespace Apollon.WPF.Commands
detailsViewModel.Organisation,
detailsViewModel.TournamentName,
detailsViewModel.Competition,
detailsViewModel.CompetitionImage,
detailsViewModel.StartDate,
detailsViewModel.EndDate,
detailsViewModel.Location,

View File

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

View File

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

View File

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