public override void ChangeState(DrawingState state) { foreach (DrawingObject drawingObject in drawingGroups) { drawingObject.ChangeState(state); } this.state = state; }
public static DrawingState GetInstance() { if (instance == null) { instance = new PolygonDrawState(); } return(instance); }
public void ChangeState(DrawingState state) { this.state = state; }