Example #1
0
 /// <summary>Undoes the command</summary>
 /// <param name="commandHistory">The command history.</param>
 public void Undo(CommandHistory commandHistory)
 {
     if (modelAdded && modelToAdd != null)
     {
         parent.Children.Remove(modelToAdd as Model);
         presenter.DeleteFromTree(modelToAdd.FullPath);
     }
 }