[EDIT] made method for getting in lobby
This commit is contained in:
@@ -35,16 +35,19 @@ namespace Client
|
|||||||
Debug.WriteLine("Host button clicked");
|
Debug.WriteLine("Host button clicked");
|
||||||
});
|
});
|
||||||
|
|
||||||
JoinSelectedLobby = new RelayCommand(() =>
|
JoinSelectedLobby = new RelayCommand(startGameInLobby, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void startGameInLobby()
|
||||||
{
|
{
|
||||||
if (SelectedLobby != null)
|
if (SelectedLobby != null)
|
||||||
{
|
{
|
||||||
|
ClientData.Instance.Lobby = SelectedLobby;
|
||||||
|
|
||||||
_model.CanStartGame = false;
|
_model.CanStartGame = false;
|
||||||
GameWindow window = new GameWindow();
|
GameWindow window = new GameWindow();
|
||||||
window.Show();
|
window.Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
}, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ClickCheck()
|
private void ClickCheck()
|
||||||
|
|||||||
Reference in New Issue
Block a user