[chore:] deleting from course list

This commit is contained in:
2026-03-03 08:14:24 +01:00
parent af2ad3dab7
commit df282d1164
2 changed files with 31 additions and 2 deletions

View File

@@ -354,4 +354,19 @@ public partial class MainWindow : Window
LbSportCourses.SelectedIndex = curr_selected;
//} catch (Exception ex) {}
}
private void BtnClearCourseList_OnClick(object? sender, RoutedEventArgs e)
{
Settings.Instance.Sports.Clear();
RefreshCoursesList();
}
private void BtnDeleteSinleCourse_OnClick(object? sender, RoutedEventArgs e)
{
try
{
Settings.Instance.Sports.Remove(LbSportCourses.SelectedItem as Sport);
RefreshCoursesList();
} catch (Exception ex){}
}
}