From e6289e08839b836ce359e6af301ac8a36a0df37e Mon Sep 17 00:00:00 2001 From: STBBRD <62409850+STBBRD@users.noreply.github.com> Date: Sat, 27 Apr 2024 12:24:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8E=E5=80=92=E6=95=B0?= =?UTF-8?q?=E6=97=A5=E5=AE=9E=E9=99=85=E8=B7=9D=E7=A6=BB=E4=B8=BA=20*.9999?= =?UTF-8?q?=20=E5=A4=A9=E6=97=B6=EF=BC=8C=E6=98=BE=E7=A4=BA=E4=B8=8E?= =?UTF-8?q?=E5=80=92=E6=95=B0=E6=97=A5=E8=B7=9D=E7=A6=BB=E4=B8=BA"*1.000"?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZongziTEK_Blackboard_Sticker/Pages/CountdownPage.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ZongziTEK_Blackboard_Sticker/Pages/CountdownPage.xaml.cs b/ZongziTEK_Blackboard_Sticker/Pages/CountdownPage.xaml.cs index 0b3920e..b1851c9 100644 --- a/ZongziTEK_Blackboard_Sticker/Pages/CountdownPage.xaml.cs +++ b/ZongziTEK_Blackboard_Sticker/Pages/CountdownPage.xaml.cs @@ -43,7 +43,7 @@ private void Timer_Tick(object sender, EventArgs e) if (timeSpan.TotalDays < 0) { LabelDays.Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 204, 0)); - LabelName.Content = countdownName + "已开始"; + LabelName.Content = "距离" + countdownName + "开始已过去"; timeSpan = -timeSpan; } else @@ -53,7 +53,7 @@ private void Timer_Tick(object sender, EventArgs e) LabelName.Content = "距离" + countdownName + "还有"; } LabelDays.Content = timeSpan.Days; - LabelDaysDetail.Content = (timeSpan.TotalDays - timeSpan.Days).ToString(".000"); + LabelDaysDetail.Content = "." + Math.Truncate((timeSpan.TotalDays - timeSpan.Days) * 1000).ToString("000"); } private void Page_Unloaded(object sender, EventArgs e)