Esempio n. 1
0
 //disable all buttons and using ellipse mode
 public void ClickEllipseButton()
 {
     EnableButtons();
     IsEllipseButtonEnable = false;
     DrawState drawState = new DrawState(this);
     drawState.ShapeEnum = MyPaint.PaintModel.ShapeEnum.Ellipse;
     _state = drawState;
     ChangeState();
 }
Esempio n. 2
0
 public void Initialize()
 {
     _pModel = new PresentationModel(new PaintModel());
     _drawState = new DrawState(_pModel);
     _drawState.ShapeEnum = PaintModel.ShapeEnum.Rectangle;
 }