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