/// <summary> /// This function is used to make Undo operation. /// It makes action opposite to the original command. /// </summary> /// <param name="list">Graphics list</param> public void Undo(GraphicsList list) { // Add all objects from clone list to list - // opposite to DeleteAll foreach (DrawObject o in _cloneList) { list.Add(o); } }
/// <summary> /// This function is used to make Undo operation. /// It makes action opposite to the original command. /// </summary> /// <param name="list">Graphics list</param> public void Undo(GraphicsList list) { // Add all objects from clone list to list - // opposite to DeleteAll foreach (DrawObject o in _cloneList) { list.Add(o); } }
public void Undo(GraphicsList list) { list.UnselectAll(); // Add all objects from cloneList to list. foreach (DrawObject o in _cloneList) { list.Add(o); } }
public void Undo(GraphicsList list) { list.UnselectAll(); // Add all objects from cloneList to list. foreach (DrawObject o in _cloneList) { list.Add(o); } }