Exemplo n.º 1
0
 public PresentationModel(ShapeModel shapeModel)
 {
     _shapeModel = shapeModel;
     _shapeModel.CursorChange += ChangeCursorTypeEvent;
     _shapeModel.StripChange += ChangeStripEvent;
     _shapeModel.ScreenChange += ChangeScreenEvent;
 }
Exemplo n.º 2
0
 public void Initialize()
 {
     _commandManagerTarget = new CommandManager_Accessor();
     _shapeModel = new ShapeModel();
     _shapeModel.CursorChange += InvokeTest;
     _shapeModel.StripChange += InvokeTest;
     _shapeModel.ScreenChange += InvokeTest;
 }
Exemplo n.º 3
0
        public void Initialize()
        {
            _shapeModelTarget = new ShapeModel();
            _presentationModelTarget = new PresentationModel(_shapeModelTarget);
            _drawingStateTarget = new DrawingState_Accessor(_shapeModelTarget);

            _presentationModelTarget.CursorChange += InvokeTest;
            _presentationModelTarget.StripChange += InvokeTest;
            _presentationModelTarget.ScreenChange += InvokeTest;
        }
Exemplo n.º 4
0
 public void Initialize()
 {
     Point startPoint = new Point(10, 10);
     Point endPoint = new Point(20, 20);
     _rectangle = ShapeFactory.CreatShape(Mode.Rectangle, startPoint, endPoint);
     _shapeModel = new ShapeModel();
     _deleteCommandTarget = new DeleteShapeCommand_Accessor(_rectangle, _shapeModel);
     _shapeModel.CursorChange += InvokeTest;
     _shapeModel.ScreenChange += InvokeTest;
     _shapeModel.StripChange += InvokeTest;
 }
Exemplo n.º 5
0
 public DrawingState(ShapeModel shapeModel)
 {
     _shapeModel = shapeModel;
 }
Exemplo n.º 6
0
 public PointerState(ShapeModel shapeModel)
 {
     _shapeModel = shapeModel;
 }
Exemplo n.º 7
0
 public AddShapeCommand(Shape shape, ShapeModel shapeModel)
 {
     _shape = shape;
     _shapeModel = shapeModel;
 }
Exemplo n.º 8
0
 public DeleteShapeCommand(Shape shape, ShapeModel shapeModel)
 {
     _shape = shape;
     _shapeModel = shapeModel;
 }