added test bool to server gui

This commit is contained in:
Sem van der Hoeven
2020-10-12 16:53:15 +02:00
parent 7879aa301d
commit 934c1cd48b
4 changed files with 8 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ namespace Server.ViewModels
Debug.WriteLine("init mainviewmodel");
InformationModel = new Information();
InformationModel.CanStartServer = true;
InformationModel.ServerOnline = false;
this.ServerStartCommand = new RelayCommand(() =>
{
Debug.WriteLine("connect button clicked");
@@ -35,7 +36,7 @@ namespace Server.ViewModels
Debug.WriteLine("can start server " + InformationModel.CanStartServer);
serverCommunication.Start();
InformationModel.ServerOnline = true;
InformationModel.CanStartServer = false;
}
});