public DrawArea() { InitializeComponent(); ActiveShape = DrawShapeType.Pointer; listShapes = new ListShapes(); uRManager = new UndoRedoManager(listShapes); actions = new GraphicsEditor.Actions.Action[(int)DrawShapeType.NumberOfDrawShapes]; actions[(int)DrawShapeType.Pointer] = new ActionPointer(); actions[(int)DrawShapeType.Rectangle] = new ActionRectangle(); actions[(int)DrawShapeType.Ellipse] = new ActionEllipse(); }
public UndoRedoManager(ListShapes _list) { list = _list; ClearHistory(); }