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