From ea280ea05db8b5ffcab472dc64e4df36fc35fdd4 Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Tue, 17 Mar 2026 14:34:24 +0100 Subject: [PATCH] [feat:] max courses per semester changeable --- MainWindow.axaml | 5 +++++ MainWindow.axaml.cs | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/MainWindow.axaml b/MainWindow.axaml index 2f57f16..1fcb643 100644 --- a/MainWindow.axaml +++ b/MainWindow.axaml @@ -188,6 +188,11 @@ + + + + + diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs index 7f5414e..9b16cbb 100644 --- a/MainWindow.axaml.cs +++ b/MainWindow.axaml.cs @@ -17,6 +17,10 @@ public partial class MainWindow : Window Settings.ImportInitial(); Instance = this; RefreshCoursesList(); + try + { + NudSportMaxPerSemester.Value = Settings.Instance.NumCoursesPerSemester; + } catch {} } private void MnuExpSettings_OnClick(object? sender, RoutedEventArgs e) @@ -384,4 +388,12 @@ public partial class MainWindow : Window { // Export as PDF } + + private void NudSportMaxPerSemester_OnValueChanged(object? sender, NumericUpDownValueChangedEventArgs e) + { + try + { + Settings.Instance.NumCoursesPerSemester = Convert.ToInt32(NudSportMaxPerSemester.Value); + } catch {} + } } \ No newline at end of file