From 688a53a9dde703aa02c1c7c1529533fa72ca8cf4 Mon Sep 17 00:00:00 2001 From: Kaniu Tayou <1056879522@qq.com> Date: Thu, 27 Dec 2018 17:42:26 +0800 Subject: [PATCH] =?UTF-8?q?Listview=E5=AE=8C=E6=95=B4=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=A4=B4=E5=83=8F=E5=8F=8A=E6=98=B5=E7=A7=B0?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StormChatWPF/LogWindow.xaml.cs | 70 ++++---- .../StormChatWPF/MainWindow.xaml | 5 +- .../StormChatWPF/MainWindow.xaml.cs | 154 +++++++++--------- .../StormChatWPF/StormChatWPF.csproj | 2 +- .../StormChatWPF/UI/Contacts.xaml | 10 +- .../UI/{UserInfo.cs => ContactsInfo.cs} | 4 +- 6 files changed, 126 insertions(+), 119 deletions(-) rename stormchat-client-csharp/StormChatWPF/UI/{UserInfo.cs => ContactsInfo.cs} (80%) diff --git a/stormchat-client-csharp/StormChatWPF/LogWindow.xaml.cs b/stormchat-client-csharp/StormChatWPF/LogWindow.xaml.cs index 9f2c305..2a83709 100644 --- a/stormchat-client-csharp/StormChatWPF/LogWindow.xaml.cs +++ b/stormchat-client-csharp/StormChatWPF/LogWindow.xaml.cs @@ -1,36 +1,36 @@ -using Interact; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -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 -{ - /// - /// MainWindow.xaml 的交互逻辑 - /// - public partial class LogWindow : Window - { - public static LogWindow Instence; - public LogWindow() - { - InitializeComponent(); +using Interact; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +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 +{ + /// + /// MainWindow.xaml 的交互逻辑 + /// + public partial class LogWindow : Window + { + public static LogWindow Instence; + public LogWindow() + { + InitializeComponent(); Instence = this; - } - private void Login_button_Click(object sender, RoutedEventArgs e) - { - Login_button.IsEnabled = false; - Chat.Log(AccountBox.Text,passwordBox.Password); - } - } -} + } + private void Login_button_Click(object sender, RoutedEventArgs e) + { + Login_button.IsEnabled = false; + Chat.Log(AccountBox.Text,passwordBox.Password); + } + } +} diff --git a/stormchat-client-csharp/StormChatWPF/MainWindow.xaml b/stormchat-client-csharp/StormChatWPF/MainWindow.xaml index 72d33dc..f13788d 100644 --- a/stormchat-client-csharp/StormChatWPF/MainWindow.xaml +++ b/stormchat-client-csharp/StormChatWPF/MainWindow.xaml @@ -19,7 +19,8 @@ - + +