提交 9d5cb71e 编写于 作者: Richard__Hu's avatar Richard__Hu

调整登录界面的UI设计

上级 cb3e4ec5
......@@ -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">
......
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册