edited SelectedTournamenStore
This commit is contained in:
@@ -8,19 +8,21 @@ namespace Apollon.WPF.Models
|
|||||||
{
|
{
|
||||||
public class Tournament
|
public class Tournament
|
||||||
{
|
{
|
||||||
public Tournament(string organisation, string tournamentname, string category, DateTime datetime, string location)
|
public Tournament(string organisation, string tournamentname, string category, DateTime startdate, DateTime enddate, string location)
|
||||||
{
|
{
|
||||||
Organisation = organisation;
|
Organisation = organisation;
|
||||||
Tournamentname = tournamentname;
|
Tournamentname = tournamentname;
|
||||||
Category = category;
|
Category = category;
|
||||||
Datetime = datetime;
|
Startdate = startdate;
|
||||||
|
Enddate = enddate;
|
||||||
Location = location;
|
Location = location;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Organisation { get; }
|
public string Organisation { get; }
|
||||||
public string Tournamentname { get; }
|
public string Tournamentname { get; }
|
||||||
public string Category { get; }
|
public string Category { get; }
|
||||||
public DateTime Datetime { get; }
|
public DateTime Startdate { get; }
|
||||||
|
public DateTime Enddate { get; }
|
||||||
public string Location { get; }
|
public string Location { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ namespace Apollon.WPF.ViewModels
|
|||||||
public string Organisation => _selectedTournament?.Organisation ?? "keine Organisation";
|
public string Organisation => _selectedTournament?.Organisation ?? "keine Organisation";
|
||||||
public string Tournamentname => _selectedTournament?.Tournamentname ?? "kein Name";
|
public string Tournamentname => _selectedTournament?.Tournamentname ?? "kein Name";
|
||||||
public string Category => _selectedTournament?.Category ?? "keine Kategorie";
|
public string Category => _selectedTournament?.Category ?? "keine Kategorie";
|
||||||
//public DateTime Datetime => _selectedTournament
|
public DateTime Startdate => _selectedTournament?.Startdate ?? DateTime.MinValue;
|
||||||
|
public DateTime Enddate => _selectedTournament?.Enddate ?? DateTime.MinValue;
|
||||||
public string Location => _selectedTournament?.Location ?? "kein Ort";
|
public string Location => _selectedTournament?.Location ?? "kein Ort";
|
||||||
|
|
||||||
public ApollonOverviewDetailsViewModel(SelectedTournamentStore selectedTournamentStore)
|
public ApollonOverviewDetailsViewModel(SelectedTournamentStore selectedTournamentStore)
|
||||||
|
|||||||
@@ -18,21 +18,43 @@
|
|||||||
FontWeight="Bold"
|
FontWeight="Bold"
|
||||||
FontSize="14"
|
FontSize="14"
|
||||||
Foreground="#0000a0"
|
Foreground="#0000a0"
|
||||||
Margin="40"/>
|
Margin="10"/>
|
||||||
<TextBlock Text="{Binding Datetime}"
|
<TextBlock Text="{Binding Organisation}"
|
||||||
TextAlignment="Center"
|
TextAlignment="Center"
|
||||||
FontFamily="Arial"
|
FontFamily="Arial"
|
||||||
FontWeight="Bold"
|
FontWeight="Bold"
|
||||||
FontSize="14"
|
FontSize="14"
|
||||||
Foreground="#0000a0"
|
Foreground="#0000a0"
|
||||||
Margin="0,0,0,40"/>
|
Margin="10"/>
|
||||||
|
<TextBlock Text="{Binding Category}"
|
||||||
|
TextAlignment="Center"
|
||||||
|
FontFamily="Arial"
|
||||||
|
FontWeight="Bold"
|
||||||
|
FontSize="14"
|
||||||
|
Foreground="#0000a0"
|
||||||
|
Margin="10"/>
|
||||||
|
<WrapPanel Margin="10">
|
||||||
|
<TextBlock Text="{Binding Startdate}"
|
||||||
|
TextAlignment="Center"
|
||||||
|
FontFamily="Arial"
|
||||||
|
FontWeight="Bold"
|
||||||
|
FontSize="14"
|
||||||
|
Foreground="#0000a0"/>
|
||||||
|
<TextBlock Text="{Binding Enddate}"
|
||||||
|
TextAlignment="Center"
|
||||||
|
FontFamily="Arial"
|
||||||
|
FontWeight="Bold"
|
||||||
|
FontSize="14"
|
||||||
|
Foreground="#0000a0"/>
|
||||||
|
</WrapPanel>
|
||||||
|
|
||||||
<TextBlock Text="{Binding Location}"
|
<TextBlock Text="{Binding Location}"
|
||||||
TextAlignment="Center"
|
TextAlignment="Center"
|
||||||
FontFamily="Arial"
|
FontFamily="Arial"
|
||||||
FontWeight="Bold"
|
FontWeight="Bold"
|
||||||
FontSize="14"
|
FontSize="14"
|
||||||
Foreground="#0000a0"
|
Foreground="#0000a0"
|
||||||
Margin="0,0,0,40"/>
|
Margin="10"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user