Compare commits
2 Commits
e27a6b88d4
...
f8f5140d47
| Author | SHA1 | Date | |
|---|---|---|---|
| f8f5140d47 | |||
| e9c7b61ced |
@@ -57,9 +57,15 @@ public partial class MainWindow : Window
|
|||||||
private void MnuAbout_OnClick(object? sender, RoutedEventArgs e)
|
private void MnuAbout_OnClick(object? sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
Window w = new();
|
Window w = new();
|
||||||
|
w.WindowState = WindowState.Normal;
|
||||||
|
w.WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
||||||
|
w.Width = 300;
|
||||||
|
w.Height = 120;
|
||||||
Grid g = new();
|
Grid g = new();
|
||||||
TextBlock tb = new();
|
TextBlock tb = new()
|
||||||
tb.Text = "Spplus v1.0.0\n(c)2026 MyPapertown, Elias Fierke";
|
{
|
||||||
|
Text = "spplus v1.0.0\n(c)2026 MyPapertown, Elias Fierke"
|
||||||
|
};
|
||||||
g.Children.Add(tb);
|
g.Children.Add(tb);
|
||||||
w.Content = g;
|
w.Content = g;
|
||||||
w.Show();
|
w.Show();
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ public abstract class Sport
|
|||||||
|
|
||||||
public abstract class Student
|
public abstract class Student
|
||||||
{
|
{
|
||||||
public string Name { get; set; } = ""; // Name des Schülers
|
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 Sport[] SelectedCourses { get; set; } = new Sport[4]; // Kurswahl
|
||||||
public List<string>? Result { get; set; } = null;
|
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;
|
Name = name;
|
||||||
SelectedCourses = selectedCourses;
|
SelectedCourses = selectedCourses;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user