Пример #1
0
 private void nodes_ItemsRemoved(object sender, CollectionItemsChangedEventArgs e)
 {
     foreach (NodeViewModel node in e.Items)
     {
         for (int i = 0; i < node.DialogueEntry.NumChoices; ++i)
         {
             _dialogue.RemoveChoice(node.DialogueEntry.Choice(i));
         }
         _dialogue.RemoveEntry(node.DialogueEntry);
     }
 }
Пример #2
0
 public void Undo()
 {
     _dialogue.RemoveChoice(_connector.DialogueChoice);
     _outgoingConnectors.Remove(_connector);
     _connector = null;
 }