private void btJoin_OnClick(object sender, EventArgs e) { if (_activeGame == null) { return; } _service.JoinGame(_activeGame); RefreshClick(sender, e); Mode = Modes.Joined; }
public bool JoinGame(GameDescription game) { try { return(_service.JoinGame(game)); } catch (Exception e) { FatalError(e); return(false); } }