Ejemplo n.º 1
0
 public PainterForm(PresentationModel presentationModel)
 {
     DoubleBuffered = true;
     _presentationModel = presentationModel;
     PrepareMenuStrip();
     PrepareToolStrip();
     Initialize();
 }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 3
0
 static void Main(string[] args)
 {
     PresentationModel presentationModel = new PresentationModel(new ShapeModel());
     Form form = new PainterForm(presentationModel);
     Application.Run(form);
 }