Ejemplo n.º 1
0
 public void MoveToOpenState()
 {
     _currentState?.Clear();
     _currentState = _openState;
     _currentState.Initialize();
 }
Ejemplo n.º 2
0
 public void MoveToCloseState()
 {
     _currentState?.Clear();
     _currentState = _closeState;
     _currentState.Initialize();
 }