From f7552edd154bf527d8e9be8c27c43a079902ef6c Mon Sep 17 00:00:00 2001 From: dathlin Date: Fri, 14 Jul 2017 10:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B4=A6=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=98=BE=E7=A4=BA=E5=92=8C=E8=B4=A6=E6=88=B7=E6=B3=A8?= =?UTF-8?q?=E9=94=80=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 软件系统客户端Wpf/MainWindow.xaml | 92 ++++++++++++++++++++++++++-- 软件系统客户端Wpf/MainWindow.xaml.cs | 22 ++++--- 2 files changed, 100 insertions(+), 14 deletions(-) diff --git a/软件系统客户端Wpf/MainWindow.xaml b/软件系统客户端Wpf/MainWindow.xaml index e8610cd..0d34094 100644 --- a/软件系统客户端Wpf/MainWindow.xaml +++ b/软件系统客户端Wpf/MainWindow.xaml @@ -5,6 +5,7 @@ xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:软件系统客户端Wpf" + xmlns:y="clr-namespace:ClientsLibrary;assembly=ClientsLibrary" mc:Ignorable="d" Title="MainWindow" Height="350" Width="525" WindowState="Maximized" Activated="Window_Activated" Closing="Window_Closing" ContentRendered="Window_ContentRendered" Initialized="Window_Initialized" Loaded="Window_Loaded"> @@ -154,13 +155,92 @@ - + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 权限等级: + 所属分厂: + 注册时间: + 登录频次: + 最近登录: + 上次登录IP: + + + + + + + + + + + + + + + + + + + + + + + + + + + + 权限等级: + 所属分厂: + 注册时间: + 登录频次: + 最近登录: + 上次登录IP: + + + + + + + + + + diff --git a/软件系统客户端Wpf/MainWindow.xaml.cs b/软件系统客户端Wpf/MainWindow.xaml.cs index 717d1f7..1ddc287 100644 --- a/软件系统客户端Wpf/MainWindow.xaml.cs +++ b/软件系统客户端Wpf/MainWindow.xaml.cs @@ -123,6 +123,7 @@ namespace 软件系统客户端Wpf //显示头像 SoftUserPortraitInitialization(); SoftUserPortrait.DownloadUserPortraint(); + AccountChip.Content = UserClient.UserAccount.UserName; } private void Window_Initialized(object sender, EventArgs e) @@ -134,13 +135,12 @@ namespace 软件系统客户端Wpf { //在窗体加载时触发,窗体还不显示任何东西 //窗口载入 - //label_userName.Text = UserClient.UserAccount.UserName; - //label_grade.Text = AccountGrade.GetDescription(UserClient.UserAccount.Grade); - //label_factory.Text = UserClient.UserAccount.Factory; - //label_register.Text = UserClient.UserAccount.RegisterTime.ToString(); - //label_last.Text = UserClient.UserAccount.LastLoginTime.ToString(); - //label_times.Text = UserClient.UserAccount.LoginFrequency.ToString(); - //label_address.Text = UserClient.UserAccount.LastLoginIpAddress; + Account_grade.Text = AccountGrade.GetDescription(UserClient.UserAccount.Grade); + Account_factory.Text = UserClient.UserAccount.Factory; + Account_register.Text = UserClient.UserAccount.RegisterTime.ToString(); + Account_last.Text = UserClient.UserAccount.LastLoginTime.ToString(); + Account_times.Text = UserClient.UserAccount.LoginFrequency.ToString(); + Account_address.Text = UserClient.UserAccount.LastLoginIpAddress; //状态栏设置 TextBlock_CopyRight.Text = $"本软件著作权归{Resource.StringResouce.SoftCopyRight}所有"; @@ -332,6 +332,11 @@ namespace 软件系统客户端Wpf } } + private void Button_Quit_Click(object sender, RoutedEventArgs e) + { + App.QuitCode = 1; + Close(); + } #endregion @@ -598,8 +603,9 @@ namespace 软件系统客户端Wpf } } + #endregion - + } }