//constructor of main page public MainPage() { this.InitializeComponent(); _pModel = new PresentationModel(new PaintModel()); _pModel._modelChanged += RefreshCanvas; _pModel._stateChanged += RefreshState; RefreshState(); }
public void Initialize() { _pModel = new PresentationModel(new PaintModel()); _pointerState = new PointerState(_pModel); }
//constructor of pointer state public PointerState(PresentationModel pModel) : base(pModel) { }
public void Initialize() { _pModel = new PresentationModel(new PaintModel()); }
//constructor of pointer state public DrawState(PresentationModel pModel) : base(pModel) { }
public void Initialize() { _pModel = new PresentationModel(new PaintModel()); _drawState = new DrawState(_pModel); _drawState.ShapeEnum = PaintModel.ShapeEnum.Rectangle; }