From b95581b63cab6b54cfe9fbb7181b544b60652c7c Mon Sep 17 00:00:00 2001 From: Kaniu Tayou <1056879522@qq.com> Date: Sat, 29 Dec 2018 08:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stormchat-client-csharp/StormChatWPF/Chat.cs | 2 +- .../StormChatWPF/MainWindow.xaml | 4 +-- .../StormChatWPF/MainWindow.xaml.cs | 2 +- .../StormChatWPF/StormChatWPF.csproj | 7 +++++ .../StormChatWPF/UI/Contacts.xaml | 14 +++++----- .../StormChatWPF/UI/ContactsInfo.cs | 1 + .../StormChatWPF/UI/UserMeHeadInfo.xaml | 17 ++++++++++++ .../StormChatWPF/UI/UserMeHeadInfo.xaml.cs | 27 +++++++++++++++++++ 8 files changed, 63 insertions(+), 11 deletions(-) create mode 100644 stormchat-client-csharp/StormChatWPF/UI/UserMeHeadInfo.xaml create mode 100644 stormchat-client-csharp/StormChatWPF/UI/UserMeHeadInfo.xaml.cs diff --git a/stormchat-client-csharp/StormChatWPF/Chat.cs b/stormchat-client-csharp/StormChatWPF/Chat.cs index 7c36c87..9ab9a3f 100644 --- a/stormchat-client-csharp/StormChatWPF/Chat.cs +++ b/stormchat-client-csharp/StormChatWPF/Chat.cs @@ -19,7 +19,7 @@ namespace StormChatWPF StormClient.OnLoginDone += OnHaveLogin; StormClient.OnGetUserListDone += OnGetContactsList; StormClient.OnMessage +=OnMessage;//事件挂接 - User.DefaultPhoto = new MemoryStream(File.ReadAllBytes(@"../../UI/Resources/默认头像.png")); + User.DefaultPhoto = new MemoryStream(File.ReadAllBytes(@"../../UI/Resources/默认头像.png"));//设定默认头像 } internal static User CurrentContact { get; set; }//设置当前联系人对象 /// diff --git a/stormchat-client-csharp/StormChatWPF/MainWindow.xaml b/stormchat-client-csharp/StormChatWPF/MainWindow.xaml index f13788d..284cfc3 100644 --- a/stormchat-client-csharp/StormChatWPF/MainWindow.xaml +++ b/stormchat-client-csharp/StormChatWPF/MainWindow.xaml @@ -19,9 +19,9 @@ - + - +