예제 #1
0
 public override void ChangeState(DrawingState state)
 {
     foreach (DrawingObject drawingObject in drawingGroups)
     {
         drawingObject.ChangeState(state);
     }
     this.state = state;
 }
예제 #2
0
 public static DrawingState GetInstance()
 {
     if (instance == null)
     {
         instance = new PolygonDrawState();
     }
     return(instance);
 }
예제 #3
0
 public void ChangeState(DrawingState state)
 {
     this.state = state;
 }