From 6cea1b61c7f86c2cde0af7b44a3e4f079afa679e Mon Sep 17 00:00:00 2001
From: Kaniu Tayou <1056879522@qq.com>
Date: Sat, 29 Dec 2018 17:32:32 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BD=BF=E7=94=A8=E8=80=85?=
=?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
stormchat-client-csharp/StormChatWPF/MainWindow.xaml | 2 +-
.../StormChatWPF/MainWindow.xaml.cs | 4 ++--
.../StormChatWPF/UI/Contacts.xaml.cs | 12 +-----------
3 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/stormchat-client-csharp/StormChatWPF/MainWindow.xaml b/stormchat-client-csharp/StormChatWPF/MainWindow.xaml
index 75b0337..fbe4b5b 100644
--- a/stormchat-client-csharp/StormChatWPF/MainWindow.xaml
+++ b/stormchat-client-csharp/StormChatWPF/MainWindow.xaml
@@ -29,7 +29,7 @@
-
+
diff --git a/stormchat-client-csharp/StormChatWPF/MainWindow.xaml.cs b/stormchat-client-csharp/StormChatWPF/MainWindow.xaml.cs
index d94774c..47d66cd 100644
--- a/stormchat-client-csharp/StormChatWPF/MainWindow.xaml.cs
+++ b/stormchat-client-csharp/StormChatWPF/MainWindow.xaml.cs
@@ -31,10 +31,10 @@ namespace StormChatWPF
private void LoadUserMe()
{
BitmapImage image = new BitmapImage();
- User_HeadPicture.BeginInit();
+ image.BeginInit();
image.StreamSource = User.Me.Photo;
User.Me.Photo.Seek(0, SeekOrigin.Begin);
- User_HeadPicture.EndInit();
+ image.EndInit();
User_HeadPicture.Source = image;
User_NickNmae.Content = User.Me.NickName;
User_motto.Content = User.Me.Motto;
diff --git a/stormchat-client-csharp/StormChatWPF/UI/Contacts.xaml.cs b/stormchat-client-csharp/StormChatWPF/UI/Contacts.xaml.cs
index f36e54f..e0b4388 100644
--- a/stormchat-client-csharp/StormChatWPF/UI/Contacts.xaml.cs
+++ b/stormchat-client-csharp/StormChatWPF/UI/Contacts.xaml.cs
@@ -1,16 +1,6 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
+using System.Windows;
using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
namespace StormChatWPF.UI
{