添加聊天功能,主界面修改一点显示

This commit is contained in:
dathlin
2017-07-16 20:18:47 +08:00
parent 1798018edd
commit ea6c207bf0
7 changed files with 78 additions and 42 deletions

View File

@@ -290,6 +290,7 @@ namespace 软件系统客户端Wpf
//Task.Factory.StartNew(() => messageQueue.Enqueue(message));
SetShowRenderControl(UIControls_Chat);
UIControls_Chat.ScrollToDown();
}
private void MenuItem头像更改_Click(object sender, RoutedEventArgs e)
@@ -425,7 +426,7 @@ namespace 软件系统客户端Wpf
{
TextBlock_ServerTime.Text = UserClient.DateTimeServer.ToString("yyyy-MM-dd HH:mm:ss");
//label_file_count.Text = json["FileCount"].ToObject<int>().ToString();
//UIControls_Chat.AddChatsHistory(sb.ToString());
UIControls_Chat.AddChatsHistory(sb.ToString());
}));
}
else if (customer == CommonHeadCode.MultiNetHeadCode.)
@@ -439,7 +440,7 @@ namespace 软件系统客户端Wpf
{
if (IsWindowShow) Dispatcher.Invoke(new Action(() =>
{
//UIControls_Chat?.DealwithReceive(data);
UIControls_Chat?.DealwithReceive(data);
}));
}
}