Compare commits

..

2 Commits

Author SHA1 Message Date
f8f5140d47 [chore:] better info view (was maximized) 2026-02-18 14:12:57 +01:00
e9c7b61ced [chore:] added student-id 2026-02-18 14:12:42 +01:00
2 changed files with 12 additions and 4 deletions

View File

@@ -57,9 +57,15 @@ public partial class MainWindow : Window
private void MnuAbout_OnClick(object? sender, RoutedEventArgs e)
{
Window w = new();
w.WindowState = WindowState.Normal;
w.WindowStartupLocation = WindowStartupLocation.CenterScreen;
w.Width = 300;
w.Height = 120;
Grid g = new();
TextBlock tb = new();
tb.Text = "Spplus v1.0.0\n(c)2026 MyPapertown, Elias Fierke";
TextBlock tb = new()
{
Text = "spplus v1.0.0\n(c)2026 MyPapertown, Elias Fierke"
};
g.Children.Add(tb);
w.Content = g;
w.Show();

View File

@@ -32,6 +32,7 @@ public abstract class Sport
public abstract class Student
{
public string ID { get; set; } = ""; // ID des Schüler (z.B. NolteSeb)
public string Name { get; set; } = ""; // Name des Schülers
public Sport[] SelectedCourses { get; set; } = new Sport[4]; // Kurswahl
public List<string>? Result { get; set; } = null;
@@ -41,8 +42,9 @@ public abstract class Student
}
protected Student(string name, Sport[] selectedCourses)
protected Student(string id, string name, Sport[] selectedCourses)
{
ID = id;
Name = name;
SelectedCourses = selectedCourses;
}