public void HandleKeyPress(IConnectionServiceBase connectionService, char key)
 {
     if (char.ToUpper(key, CultureInfo.InvariantCulture) == KEY_CONNECT)
     {
         connectionService.MoveToState(ConnectionState.Connected);
     }
 }
 public virtual void HandleKeyPress(IConnectionServiceBase connectionService, char key)
 {
     // No action required in this pattern
 }
Exemplo n.º 3
0
 public void HandleKeyPress(IConnectionServiceBase connectionService, char key)
 {
     _eventAggregatorService.Publish <StateTransitionEventArgs>(new StateTransitionEventArgs(ConnectionState.Connected));
 }
Exemplo n.º 4
0
 public void HandleKeyPress(IConnectionServiceBase connectionService, char key)
 {
     ((IConnectionService)connectionService).MoveToNextState();
 }
Exemplo n.º 5
0
 public void HandleKeyPress(IConnectionServiceBase connectionService, char key)
 {
     ChangeState?.Invoke(connectionService, new StateTransitionEventArgs(ConnectionState.Connected));
 }