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
 }
Exemple #3
0
 public void HandleKeyPress(IConnectionServiceBase connectionService, char key)
 {
     _eventAggregatorService.Publish <StateTransitionEventArgs>(new StateTransitionEventArgs(ConnectionState.Connected));
 }
Exemple #4
0
 public void HandleKeyPress(IConnectionServiceBase connectionService, char key)
 {
     ((IConnectionService)connectionService).MoveToNextState();
 }
Exemple #5
0
 public void HandleKeyPress(IConnectionServiceBase connectionService, char key)
 {
     ChangeState?.Invoke(connectionService, new StateTransitionEventArgs(ConnectionState.Connected));
 }