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