public void ShowException(EmptyPacketReceivedException ex)
        {
            var messageBox = _messageBoxFactory.CreateMessageBox(DialogResourceID.CONNECTION_SERVER_NOT_FOUND,
                                                                 "\n\"" + ex.Message + "\"",
                                                                 EODialogButtons.Ok,
                                                                 EOMessageBoxStyle.SmallDialogLargeHeader);

            messageBox.ShowDialog();
        }
Example #2
0
 private void SetInitialStateAndShowError(EmptyPacketReceivedException ex)
 {
     _gameStateActions.ChangeToState(GameStates.Initial);
     _errorDisplayAction.ShowException(ex);
 }