public PainterForm(PresentationModel presentationModel) { DoubleBuffered = true; _presentationModel = presentationModel; PrepareMenuStrip(); PrepareToolStrip(); Initialize(); }
public void Initialize() { _shapeModelTarget = new ShapeModel(); _presentationModelTarget = new PresentationModel(_shapeModelTarget); _drawingStateTarget = new DrawingState_Accessor(_shapeModelTarget); _presentationModelTarget.CursorChange += InvokeTest; _presentationModelTarget.StripChange += InvokeTest; _presentationModelTarget.ScreenChange += InvokeTest; }
static void Main(string[] args) { PresentationModel presentationModel = new PresentationModel(new ShapeModel()); Form form = new PainterForm(presentationModel); Application.Run(form); }