示例#1
0
        private void BtnServerReadClientMsg_Click(object sender, RoutedEventArgs e)
        {
            if (clientMessage != null)
            {
                if (!server.TryReceiveEdits(clientMessage))
                {
                    clientMessage = null;
                }

                RefreshUI();
            }
        }
示例#2
0
        private void BtnClientReadServerMsg_Click(object sender, RoutedEventArgs e)
        {
            if (serverMessage != null)
            {
                if (!client.TryReceiveEdits(serverMessage))
                {
                    serverMessage = null;
                }

                RefreshUI();
            }
        }