void DisconnectUser() { if (isConnected) { client.Disconnect(id); tbUserName.IsEnabled = true; client = null; btConDiscon.Content = "Connect"; isConnected = false; } }