using DelftTools.Utils.Aop; using DelftTools.Utils.Aop.Markers; using DelftTools.Utils.Collections.Generic; using DelftTools.Utils.Editing; namespace DelftTools.Tests.Controls.Swf.UndoRedoTestClasses { [Entity] public class Parent : IEditableObject { public Parent() { Children = new EventedList(); } public IEventedList Children { get; set; } public string Name { get; set; } public bool IsEditing { get; set; } public bool EditWasCancelled { get { return false; } } [NoNotifyPropertyChange] public IEditAction CurrentEditAction { get; private set; } public void BeginEdit(IEditAction action) { CurrentEditAction = action; IsEditing = true; } public void EndEdit() { IsEditing = false; CurrentEditAction = null; } public void CancelEdit() { EndEdit(); } } }