[ADD] made join buttons disabled when starting a game
This commit is contained in:
@@ -11,6 +11,7 @@ namespace Client
|
||||
|
||||
private int _numbers;
|
||||
private bool _status;
|
||||
private bool _canStartGame;
|
||||
|
||||
//Test code
|
||||
public int Numbers
|
||||
@@ -37,11 +38,18 @@ namespace Client
|
||||
}
|
||||
}
|
||||
|
||||
public bool CanStartGame
|
||||
{
|
||||
get { return _canStartGame; }
|
||||
set { _canStartGame = value; }
|
||||
}
|
||||
|
||||
|
||||
public Model()
|
||||
{
|
||||
_status = false;
|
||||
_numbers = 0;
|
||||
_canStartGame = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace Client
|
||||
{
|
||||
if (SelectedLobby != null)
|
||||
{
|
||||
_model.CanStartGame = false;
|
||||
GameWindow window = new GameWindow();
|
||||
window.Show();
|
||||
}
|
||||
@@ -55,7 +56,6 @@ namespace Client
|
||||
}
|
||||
|
||||
|
||||
|
||||
private Model _model;
|
||||
public Model Model
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user