public override void Undo(GraphicsList list) { list.UnselectAll(); // Add all objects from cloneList to list. int n = cloneList.Count; for (int i = n - 1; i >= 0; i--) { list.Insert(indexList[i], cloneList[i]); } }
public override void Redo(GraphicsList list) { list.UnselectAll(); list.Add(drawObject); }