示例#1
0
        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();
        }
示例#2
0
        public UndoRedoManager(ListShapes _list)
        {
            list = _list;

            ClearHistory();
        }