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
{