From b42c7a132fa229d283eee30997cbe2c2dd6e2a88 Mon Sep 17 00:00:00 2001 From: Kaniu Tayou <1056879522@qq.com> Date: Sat, 29 Dec 2018 17:04:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=87=AA=E8=BA=AB=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E6=98=BE=E7=A4=BA=20=E6=9C=AA=E5=AE=8C=E6=88=90?= 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 | 8 +++--- .../StormChatWPF/MainWindow.xaml.cs | 25 ++++++++++++++++++- .../StormChatWPF/UI/Contacts.xaml.cs | 13 ++++++++++ 4 files changed, 43 insertions(+), 5 deletions(-) diff --git a/stormchat-client-csharp/StormChatWPF/Chat.cs b/stormchat-client-csharp/StormChatWPF/Chat.cs index 9ab9a3f..28a6405 100644 --- a/stormchat-client-csharp/StormChatWPF/Chat.cs +++ b/stormchat-client-csharp/StormChatWPF/Chat.cs @@ -44,7 +44,7 @@ namespace StormChatWPF private void OnHaveLogin(ResultHead head, User user) { if (head.Error == "") - { + { User.Me = user; StormClient.QueueGetUserList(); } diff --git a/stormchat-client-csharp/StormChatWPF/MainWindow.xaml b/stormchat-client-csharp/StormChatWPF/MainWindow.xaml index 284cfc3..75b0337 100644 --- a/stormchat-client-csharp/StormChatWPF/MainWindow.xaml +++ b/stormchat-client-csharp/StormChatWPF/MainWindow.xaml @@ -4,6 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:StormChatWPF" + xmlns:my="clr-namespace:StormChatWPF.UI" mc:Ignorable="d" Title="StormChat" Height="450" Width="800" WindowStartupLocation="CenterScreen"> @@ -19,8 +20,7 @@ - - +