[chore:] removed alternative courses (since it's not needed)
This commit is contained in:
20
structs.cs
20
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<string> AlternativeNames { get; set; } = new();
|
||||
public List<int> AlternativeCourses { get; set; } = new();
|
||||
//public List<int> 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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user