private void ExecuteRequest()
        {
            var cargo = CargoFactory.Create(CurrentAction, CurrentPlace,
                                            CurrentRepairing, CurrentProduction,
                                            CurrentOrderType, SuppliesValue.ToString());

            try
            {
                Json = _communicationManager.Send(cargo);
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
                return;
            }
            GameState = JsonConverter.Parse(Json);
            LogManager.AddTurnReport(cargo, GameState);
            if (IsGameTerminated())
            {
                LogManager.GenerateLog();
            }
            if (IsGameTerminated() || HasGameBeenRestarted(cargo))
            {
                LogManager = new LogManager();
                LogManager.AddTurnReport(GameState);
            }
        }
 public void OnStartup()
 {
     _communicationManager = CommunicationFactory.Create(GameType.Chaarr);
     try
     {
         Json = _communicationManager.Restart();
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message);
         return;
     }
     GameState = JsonConverter.Parse(Json);
     LogManager.AddTurnReport(GameState);
 }