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