diff --git a/Apollon.WPF/Commands/AddTournamentCommand.cs b/Apollon.WPF/Commands/AddTournamentCommand.cs
index fbd653b..c864485 100644
--- a/Apollon.WPF/Commands/AddTournamentCommand.cs
+++ b/Apollon.WPF/Commands/AddTournamentCommand.cs
@@ -32,7 +32,7 @@ namespace Apollon.WPF.Commands
public override async Task ExecuteAsync(object parameter)
{
AddEditDetailsViewModel formViewModel = _addTournamentViewModel.AddEditDetailsViewModel;
- Tournament tournament = new Tournament(formViewModel.Organisation,formViewModel.Tournamentname, formViewModel.Category, formViewModel.Startdate, formViewModel.Enddate,
+ Tournament tournament = new Tournament(formViewModel.Organisation,formViewModel.Tournamentname, formViewModel.Competition, formViewModel.Startdate, formViewModel.Enddate,
formViewModel.Location, formViewModel.Rounds);
try
diff --git a/Apollon.WPF/Images/Archery.png b/Apollon.WPF/Images/Archery.png
new file mode 100644
index 0000000..0581c75
Binary files /dev/null and b/Apollon.WPF/Images/Archery.png differ
diff --git a/Apollon.WPF/Images/TargetField.png b/Apollon.WPF/Images/TargetField.png
new file mode 100644
index 0000000..7aa2d9e
Binary files /dev/null and b/Apollon.WPF/Images/TargetField.png differ
diff --git a/Apollon.WPF/Images/TargetHall.png b/Apollon.WPF/Images/TargetHall.png
new file mode 100644
index 0000000..106fadd
Binary files /dev/null and b/Apollon.WPF/Images/TargetHall.png differ
diff --git a/Apollon.WPF/Images/TargetOutdoor.png b/Apollon.WPF/Images/TargetOutdoor.png
new file mode 100644
index 0000000..9736f2a
Binary files /dev/null and b/Apollon.WPF/Images/TargetOutdoor.png differ
diff --git a/Apollon.WPF/MainWindow.xaml b/Apollon.WPF/MainWindow.xaml
index cd6daec..782603e 100644
--- a/Apollon.WPF/MainWindow.xaml
+++ b/Apollon.WPF/MainWindow.xaml
@@ -10,12 +10,12 @@
mc:Ignorable="d"
Title="Apollon Auswertung Bogen"
Height="680"
- Width="1080"
+ Width="1100"
WindowStartupLocation="CenterScreen"
Background="Transparent"
AllowsTransparency="True"
WindowStyle="None"
- ResizeMode="CanResizeWithGrip">
+ ResizeMode="NoResize">
@@ -23,9 +23,7 @@
-
-
+
@@ -73,6 +71,5 @@
Foreground="#0000a0"
Click="Button_Exit"/>
-
-
+
diff --git a/Apollon.WPF/Models/Tournament.cs b/Apollon.WPF/Models/Tournament.cs
index 7613d49..c82b1b7 100644
--- a/Apollon.WPF/Models/Tournament.cs
+++ b/Apollon.WPF/Models/Tournament.cs
@@ -8,11 +8,11 @@ namespace Apollon.WPF.Models
{
public class Tournament
{
- public Tournament(string organisation, string tournamentname, string category, string startdate, string enddate, string location, int rounds = 0)
+ public Tournament(string organisation, string tournamentname, string competition, string startdate, string enddate, string location, int rounds = 0)
{
Organisation = organisation;
Tournamentname = tournamentname;
- Category = category;
+ Competition = competition;
Startdate = startdate;
Enddate = enddate;
Location = location;
@@ -21,7 +21,7 @@ namespace Apollon.WPF.Models
public string Organisation { get; }
public string Tournamentname { get; }
- public string Category { get; }
+ public string Competition { get; }
public string Startdate { get; }
public string Enddate { get; }
public string Location { get; }
diff --git a/Apollon.WPF/ViewModels/AddEditDetailsViewModel.cs b/Apollon.WPF/ViewModels/AddEditDetailsViewModel.cs
index bdce062..36bcccd 100644
--- a/Apollon.WPF/ViewModels/AddEditDetailsViewModel.cs
+++ b/Apollon.WPF/ViewModels/AddEditDetailsViewModel.cs
@@ -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));
}
}
diff --git a/Apollon.WPF/ViewModels/EditTournamentViewModel.cs b/Apollon.WPF/ViewModels/EditTournamentViewModel.cs
index 4176e35..1e2be97 100644
--- a/Apollon.WPF/ViewModels/EditTournamentViewModel.cs
+++ b/Apollon.WPF/ViewModels/EditTournamentViewModel.cs
@@ -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,
diff --git a/Apollon.WPF/ViewModels/OverviewDetailsViewModel.cs b/Apollon.WPF/ViewModels/OverviewDetailsViewModel.cs
index 3d1dafa..ba7e89e 100644
--- a/Apollon.WPF/ViewModels/OverviewDetailsViewModel.cs
+++ b/Apollon.WPF/ViewModels/OverviewDetailsViewModel.cs
@@ -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";
diff --git a/Apollon.WPF/ViewModels/OverviewListingItemViewModel.cs b/Apollon.WPF/ViewModels/OverviewListingItemViewModel.cs
index d471113..57ade72 100644
--- a/Apollon.WPF/ViewModels/OverviewListingItemViewModel.cs
+++ b/Apollon.WPF/ViewModels/OverviewListingItemViewModel.cs
@@ -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)
diff --git a/Apollon.WPF/Views/Components/AddEditDetails.xaml b/Apollon.WPF/Views/Components/AddEditDetails.xaml
index 5cbcc4f..322dd7c 100644
--- a/Apollon.WPF/Views/Components/AddEditDetails.xaml
+++ b/Apollon.WPF/Views/Components/AddEditDetails.xaml
@@ -5,37 +5,37 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Apollon.WPF.Views.Components"
mc:Ignorable="d">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+ VerticalContentAlignment="Center"
+ HorizontalAlignment="Left"/>
-
-
+ Grid.Column="1"/>
-
-
-
+
+
+
diff --git a/Apollon.WPF/Views/Components/OverViewListing.xaml b/Apollon.WPF/Views/Components/OverViewListing.xaml
index db4d016..1cfb4d2 100644
--- a/Apollon.WPF/Views/Components/OverViewListing.xaml
+++ b/Apollon.WPF/Views/Components/OverViewListing.xaml
@@ -17,7 +17,7 @@
FontWeight="Bold"
Background="Transparent"
BorderBrush="Transparent"
- Padding="20"
+ Padding="5"
ItemsSource="{Binding OverviewListingItemViewModels}"
SelectedItem="{Binding SelectedOverviewListingItemViewModel}">
@@ -32,7 +32,12 @@
-
+
+
+
+
+