diff --git a/Client/Models/Model.cs b/Client/Models/Model.cs index 59b3577..9e50229 100644 --- a/Client/Models/Model.cs +++ b/Client/Models/Model.cs @@ -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; } } diff --git a/Client/ViewModels/ViewModel.cs b/Client/ViewModels/ViewModel.cs index 0c41749..e874c00 100644 --- a/Client/ViewModels/ViewModel.cs +++ b/Client/ViewModels/ViewModel.cs @@ -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 {