Beispiel #1
0
 public PresentationModel(ShapeModel shapeModel)
 {
     _shapeModel = shapeModel;
     _shapeModel.CursorChange += ChangeCursorTypeEvent;
     _shapeModel.StripChange += ChangeStripEvent;
     _shapeModel.ScreenChange += ChangeScreenEvent;
 }
 public void Initialize()
 {
     _commandManagerTarget = new CommandManager_Accessor();
     _shapeModel = new ShapeModel();
     _shapeModel.CursorChange += InvokeTest;
     _shapeModel.StripChange += InvokeTest;
     _shapeModel.ScreenChange += InvokeTest;
 }
Beispiel #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;
        }
 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;
 }
Beispiel #5
0
 public DrawingState(ShapeModel shapeModel)
 {
     _shapeModel = shapeModel;
 }
Beispiel #6
0
 public PointerState(ShapeModel shapeModel)
 {
     _shapeModel = shapeModel;
 }
Beispiel #7
0
 public AddShapeCommand(Shape shape, ShapeModel shapeModel)
 {
     _shape = shape;
     _shapeModel = shapeModel;
 }
 public DeleteShapeCommand(Shape shape, ShapeModel shapeModel)
 {
     _shape = shape;
     _shapeModel = shapeModel;
 }