/// <summary> /// Make a following bounds change on this containerlist undoable! /// </summary> /// <param name="allowMerge">true means allow the moves to be merged</param> public void MakeBoundsChangeUndoable(bool allowMerge) { if (Count > 0 && Parent != null) { var clone = new DrawableContainerList(); clone.AddRange(this); Parent.MakeUndoable(new DrawableContainerBoundsChangeMemento(clone), allowMerge); } }
public void AddElements(DrawableContainerList elems) { elements.AddRange(elems); Invalidate(); }