[EDIT] made method for getting in lobby

This commit is contained in:
Sem van der Hoeven
2020-10-20 19:34:24 +02:00
parent a837611317
commit b1237e53a2

View File

@@ -35,16 +35,19 @@ namespace Client
Debug.WriteLine("Host button clicked");
});
JoinSelectedLobby = new RelayCommand(() =>
JoinSelectedLobby = new RelayCommand(startGameInLobby, true);
}
private void startGameInLobby()
{
if (SelectedLobby != null)
{
if (SelectedLobby != null)
{
_model.CanStartGame = false;
GameWindow window = new GameWindow();
window.Show();
}
ClientData.Instance.Lobby = SelectedLobby;
}, true);
_model.CanStartGame = false;
GameWindow window = new GameWindow();
window.Show();
}
}
private void ClickCheck()