示例#1
0
 public void SetMessage(Message msg)
 {
     Dispatcher.BeginInvoke(new Action(() =>
     {
         ClientMsg.Text   = msg.Content;
         SendDate.Content = $"发送时间:{msg.DisplayDateTime}";
         SendUser.Content = $"相关用户:{msg.User}";
         if (msg.Direction == "发送")
         {
             MyMsg.IsEnabled  = false;
             MyMsg.Visibility = Visibility.Hidden;
             Width            = 368;
         }
     }));
     _userId = Connection.GetUserId(msg.User);
 }