private void BtnServerReadClientMsg_Click(object sender, RoutedEventArgs e) { if (clientMessage != null) { if (!server.TryReceiveEdits(clientMessage)) { clientMessage = null; } RefreshUI(); } }
private void BtnClientReadServerMsg_Click(object sender, RoutedEventArgs e) { if (serverMessage != null) { if (!client.TryReceiveEdits(serverMessage)) { serverMessage = null; } RefreshUI(); } }