Exemplo n.º 1
0
 //constructor of main page
 public MainPage()
 {
     this.InitializeComponent();
     _pModel = new PresentationModel(new PaintModel());
     _pModel._modelChanged += RefreshCanvas;
     _pModel._stateChanged += RefreshState;
     RefreshState();
 }
Exemplo n.º 2
0
 public void Initialize()
 {
     _pModel = new PresentationModel(new PaintModel());
     _pointerState = new PointerState(_pModel);
 }
Exemplo n.º 3
0
 //constructor of pointer state
 public PointerState(PresentationModel pModel)
     : base(pModel)
 {
 }
Exemplo n.º 4
0
 public void Initialize()
 {
     _pModel = new PresentationModel(new PaintModel());
 }
Exemplo n.º 5
0
 //constructor of pointer state
 public DrawState(PresentationModel pModel)
     : base(pModel)
 {
 }
Exemplo n.º 6
0
 public void Initialize()
 {
     _pModel = new PresentationModel(new PaintModel());
     _drawState = new DrawState(_pModel);
     _drawState.ShapeEnum = PaintModel.ShapeEnum.Rectangle;
 }