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