예제 #1
0
 private void Initialize()
 {
     _consoleReader           = new ConsoleReader();
     _inputParser             = new InputParser();
     _userInputs              = new List <int>();
     _currentState            = new MonitoringState(this);
     _circuitSimulatorBuilder = new CircuitSimulatorBuilder();
     ConsoleWriterSingleton.ShowStart();
 }
예제 #2
0
 public void SetState(BaseMonitorState newState, int number)
 {
     _currentState = newState;
     _currentState.RegisterInput(number);
 }