[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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user