调整登录界面的UI设计

This commit is contained in:
dathlin
2017-07-12 13:38:31 +08:00
parent cb3e4ec519
commit 9d5cb71e14
3 changed files with 12 additions and 4 deletions

View File

@@ -22,14 +22,20 @@
</Style>
</ResourceDictionary>
</Window.Resources>
<Window.Background>
<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
<GradientStop Color="Azure" Offset="0"/>
<GradientStop Color="White" Offset="1"/>
</LinearGradientBrush>
</Window.Background>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
</Grid.RowDefinitions>
<StackPanel>
<materialDesign:Card Padding="24" Margin="8">
<TextBlock x:Name="TextBlockSoftName" TextAlignment="Center" Style="{DynamicResource MaterialDesignTitleTextBlock}">[您的软件系统]</TextBlock>
<materialDesign:Card Padding="16" Margin="8" Background="Transparent">
<TextBlock x:Name="TextBlockSoftName" TextAlignment="Center" FontSize="32" Style="{DynamicResource MaterialDesignTitleTextBlock}">[您的软件系统]</TextBlock>
</materialDesign:Card>
<Grid Margin="8,8,8,8">

View File

@@ -29,6 +29,9 @@ namespace 软件系统客户端Wpf
public LoginWindow()
{
InitializeComponent();
UserClient.JsonSettings.FileSavePath = AppDomain.CurrentDomain.BaseDirectory + @"\JsonSettings.txt";
UserClient.JsonSettings.LoadByFile();
}
private void Button_Click(object sender, RoutedEventArgs e)
@@ -303,8 +306,7 @@ namespace 软件系统客户端Wpf
TextBlockSoftVersion.Text = UserClient.CurrentVersion.ToString();
TextBlockSoftCopyright.Text = $"本软件著作权归{CommonLibrary.Resource.StringResouce.SoftCopyRight}所有";
UserClient.JsonSettings.FileSavePath = AppDomain.CurrentDomain.BaseDirectory + @"\JsonSettings.txt";
UserClient.JsonSettings.LoadByFile();
if ((DateTime.Now - UserClient.JsonSettings.LoginTime).TotalDays < 7)
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 18 KiB