From 8ab928be7cd5842056431d2ccdc9bf947b4c1841 Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Fri, 6 Mar 2026 09:31:28 +0100 Subject: [PATCH] [chore:] removed alternative courses (since it's not needed) --- MainWindow.axaml | 17 ----------------- MainWindow.axaml.cs | 10 +++++----- structs.cs | 20 ++++++++++---------- 3 files changed, 15 insertions(+), 32 deletions(-) diff --git a/MainWindow.axaml b/MainWindow.axaml index 29beb80..522b330 100644 --- a/MainWindow.axaml +++ b/MainWindow.axaml @@ -165,23 +165,6 @@ - - - - - - - - - - - - - diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs index d0abf66..2e1404b 100644 --- a/MainWindow.axaml.cs +++ b/MainWindow.axaml.cs @@ -246,11 +246,11 @@ public partial class MainWindow : Window NudAmountCoursesSem2.Value = item.Semester[1]; NudAmountCoursesSem3.Value = item.Semester[2]; NudAmountCoursesSem4.Value = item.Semester[3]; - LbAlternativeCourses.Items.Clear(); - foreach (var alternative in item.AlternativeCourses) - { - LbAlternativeCourses.Items.Add(Settings.GetSportNameFromID(alternative)); - } + // LbAlternativeCourses.Items.Clear(); + // foreach (var alternative in item.AlternativeCourses) + // { + // LbAlternativeCourses.Items.Add(Settings.GetSportNameFromID(alternative)); + // } LbAlternativeNames.Items.Clear(); foreach (var alternative in item.AlternativeNames) { diff --git a/structs.cs b/structs.cs index 9b492ba..0836287 100644 --- a/structs.cs +++ b/structs.cs @@ -12,7 +12,7 @@ public class Sport public int MinStudents { get; set; } = 5; // Minimale Anzahl an Schülern pro Kurs public int[] Semester { get; set; } = [2, 2, 2, 2]; // Maximale Anzahl an Angeboten in den jeweiligen Index-Semestern (0 => 1. Semester) public List AlternativeNames { get; set; } = new(); - public List AlternativeCourses { get; set; } = new(); + //public List AlternativeCourses { get; set; } = new(); protected Sport() { @@ -33,15 +33,15 @@ public class Sport AlternativeNames = alternativeNames; } - public void AddAlternativeSport(int id) - { - AlternativeCourses.Add(id); - } - - public void ClearAlternativeSport() - { - AlternativeCourses.Clear(); - } + // public void AddAlternativeSport(int id) + // { + // AlternativeCourses.Add(id); + // } + // + // public void ClearAlternativeSport() + // { + // AlternativeCourses.Clear(); + // } public override string ToString() {