[ADD] made join buttons disabled when starting a game

This commit is contained in:
Sem van der Hoeven
2020-10-20 19:26:11 +02:00
parent 1552479f4d
commit a837611317
2 changed files with 9 additions and 1 deletions

View File

@@ -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;
}
}

View File

@@ -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
{