[ADDITION] servercommunication towards the client.

Still in progress not functional because of a null exception when receiving the broadcast message.
This commit is contained in:
Dogukan
2020-10-21 17:47:48 +02:00
parent 381c142eaa
commit 74f8e868f6
4 changed files with 25 additions and 12 deletions

View File

@@ -33,15 +33,15 @@ namespace Client.ViewModels
public ViewModelGame()
{
if (_payload == null)
{
_message = "";
}
else
{
_message = _payload.message;
_username = _payload.username;
}
//if (_payload == null)
//{
// _message = "";
//}
//else
//{
// _message = _payload.message;
// _username = _payload.username;
//}
OnKeyDown = new RelayCommand(ChatBox_KeyDown);
}