private void buttonRemove_Click(object sender, RoutedEventArgs e) { if (listAction.SelectedIndex < 0) { return; } ActionCollection.RemoveAction(listAction.SelectedIndex); ActionCollection.SaveData(); }
private void addButton_Click(object sender, RoutedEventArgs e) { ActionCollection.AddAction(currentAction); ActionCollection.SaveData(() => { Frame.GoBack(); }); }