Compare commits

...

3 Commits

Author SHA1 Message Date
e27a6b88d4 Merge remote-tracking branch 'origin/main' 2026-02-17 09:30:55 +01:00
70c028aee7 [chore:] initial click-handlers 2026-02-17 09:30:40 +01:00
bbfe6299b5 [chore:] added basic ui 2026-02-17 09:30:24 +01:00
2 changed files with 57 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="spplus.MainWindow"
x:Class="spplus.MainWindow" WindowState="Maximized"
Title="SP+">
<Border>
<Grid RowDefinitions="30,*">
@@ -28,7 +28,52 @@
<Label FontSize="20" Content="Planung" VerticalContentAlignment="Center" />
</StackPanel>
</TabItem.Header>
<Grid RowDefinitions="2*,*,*">
<Grid ColumnDefinitions="*,2*">
<Button Margin="0,10,0,0" x:Name="BtnImport" VerticalAlignment="Top" Height="50" HorizontalAlignment="Stretch" Click="BtnImport_OnClick" HorizontalContentAlignment="Center">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="Import" Width="36" Height="36" />
<Label Content="Importieren..." VerticalContentAlignment="Center" FontSize="15"
FontWeight="Bold" />
</StackPanel>
</Button>
<Button Margin="0,00,0,10" x:Name="BtnCraftCourses" VerticalAlignment="Bottom" Height="50" HorizontalAlignment="Stretch" Click="BtnCraftCourses_OnClick" HorizontalContentAlignment="Center">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="Pickaxe" Width="36" Height="36" />
<Label Content="Kurse basteln" VerticalContentAlignment="Center" FontSize="15"
FontWeight="Bold" />
</StackPanel>
</Button>
<ListBox Margin="0,70,0,70" Background="MintCream" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"></ListBox>
<StackPanel Grid.Column="1" Margin="10,10,10,10" Orientation="Vertical" Spacing="10">
<Grid ColumnDefinitions="*,3*">
<Label Content="Name"></Label>
<TextBox Grid.Column="1" x:Name="TbStudentName"></TextBox>
</Grid>
<Grid ColumnDefinitions="*,2*">
<Label Content="Sport 1"></Label>
<Label Grid.Column="1" x:Name="LblSport1"></Label>
</Grid>
<Grid ColumnDefinitions="*,2*">
<Label Content="Sport 2"></Label>
<Label Grid.Column="1" x:Name="LblSport2"></Label>
</Grid>
<Grid ColumnDefinitions="*,2*">
<Label Content="Sport 3"></Label>
<Label Grid.Column="1" x:Name="LblSport3"></Label>
</Grid>
<Grid ColumnDefinitions="*,2*">
<Label Content="Sport 4"></Label>
<Label Grid.Column="1" x:Name="LblSport4"></Label>
</Grid>
</StackPanel>
</Grid>

View File

@@ -64,4 +64,14 @@ public partial class MainWindow : Window
w.Content = g;
w.Show();
}
private void BtnImport_OnClick(object? sender, RoutedEventArgs e)
{
// CSV Import
}
private void BtnCraftCourses_OnClick(object? sender, RoutedEventArgs e)
{
// Craft courses here / call course-crafter
}
}