[chore:] removed alternative courses (since it's not needed)
This commit is contained in:
@@ -165,23 +165,6 @@
|
|||||||
<NumericUpDown Grid.Column="1" x:Name="NudAmountCoursesSem4" ValueChanged="NudAmountCoursesSem4_OnValueChanged"></NumericUpDown>
|
<NumericUpDown Grid.Column="1" x:Name="NudAmountCoursesSem4" ValueChanged="NudAmountCoursesSem4_OnValueChanged"></NumericUpDown>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid ColumnDefinitions="*,3*">
|
|
||||||
<Label Content="Alternativkurse"></Label>
|
|
||||||
<StackPanel Grid.Column="1" Orientation="Vertical">
|
|
||||||
<Grid ColumnDefinitions="*,50">
|
|
||||||
<ComboBox Height="35" HorizontalAlignment="Stretch" x:Name="CbAlternativCourse"></ComboBox>
|
|
||||||
<Button Grid.Column="1" Margin="0,10,0,0" x:Name="BtnAlternativeCourseAdd" VerticalAlignment="Top" Height="35" HorizontalAlignment="Stretch" Click="BtnAlternativeCourseAdd_OnClick" HorizontalContentAlignment="Center">
|
|
||||||
<StackPanel Orientation="Horizontal">
|
|
||||||
<LucideIcon Kind="Plus" Width="24" Height="24" />
|
|
||||||
</StackPanel>
|
|
||||||
</Button>
|
|
||||||
</Grid>
|
|
||||||
<ListBox x:Name="LbAlternativeCourses">
|
|
||||||
|
|
||||||
</ListBox>
|
|
||||||
</StackPanel>
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<Grid ColumnDefinitions="*,3*">
|
<Grid ColumnDefinitions="*,3*">
|
||||||
<Label Content="Alternativbezeichnungen"></Label>
|
<Label Content="Alternativbezeichnungen"></Label>
|
||||||
|
|||||||
@@ -246,11 +246,11 @@ public partial class MainWindow : Window
|
|||||||
NudAmountCoursesSem2.Value = item.Semester[1];
|
NudAmountCoursesSem2.Value = item.Semester[1];
|
||||||
NudAmountCoursesSem3.Value = item.Semester[2];
|
NudAmountCoursesSem3.Value = item.Semester[2];
|
||||||
NudAmountCoursesSem4.Value = item.Semester[3];
|
NudAmountCoursesSem4.Value = item.Semester[3];
|
||||||
LbAlternativeCourses.Items.Clear();
|
// LbAlternativeCourses.Items.Clear();
|
||||||
foreach (var alternative in item.AlternativeCourses)
|
// foreach (var alternative in item.AlternativeCourses)
|
||||||
{
|
// {
|
||||||
LbAlternativeCourses.Items.Add(Settings.GetSportNameFromID(alternative));
|
// LbAlternativeCourses.Items.Add(Settings.GetSportNameFromID(alternative));
|
||||||
}
|
// }
|
||||||
LbAlternativeNames.Items.Clear();
|
LbAlternativeNames.Items.Clear();
|
||||||
foreach (var alternative in item.AlternativeNames)
|
foreach (var alternative in item.AlternativeNames)
|
||||||
{
|
{
|
||||||
|
|||||||
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 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 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<string> AlternativeNames { get; set; } = new();
|
||||||
public List<int> AlternativeCourses { get; set; } = new();
|
//public List<int> AlternativeCourses { get; set; } = new();
|
||||||
|
|
||||||
protected Sport()
|
protected Sport()
|
||||||
{
|
{
|
||||||
@@ -33,15 +33,15 @@ public class Sport
|
|||||||
AlternativeNames = alternativeNames;
|
AlternativeNames = alternativeNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddAlternativeSport(int id)
|
// public void AddAlternativeSport(int id)
|
||||||
{
|
// {
|
||||||
AlternativeCourses.Add(id);
|
// AlternativeCourses.Add(id);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
public void ClearAlternativeSport()
|
// public void ClearAlternativeSport()
|
||||||
{
|
// {
|
||||||
AlternativeCourses.Clear();
|
// AlternativeCourses.Clear();
|
||||||
}
|
// }
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user