[chore:] deleting from course list
This commit is contained in:
@@ -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){}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user