From 1b5ec1190a27ebe66f74ca9513020f805d3ec61c Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 22 十二月 2020 13:54:19 +0800
Subject: [PATCH] 2021221-2
---
HDL_ON/Entity/Function/Scene.cs | 16 +++++-----------
1 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs
index c6ad0eb..a369fa7 100644
--- a/HDL_ON/Entity/Function/Scene.cs
+++ b/HDL_ON/Entity/Function/Scene.cs
@@ -236,23 +236,17 @@
{
Application.RunOnMainThread(() =>
{
- if (time / 60 > 1)
+ if (time > 60)
{
- btnShowDelay.Text = (time / 60).ToString() + "min";
+ btnShowDelay.Text = (time / 60).ToString() + "min" + time % 60 + "s";
}
else
{
- btnShowDelay.Text = (time--).ToString() + "s";
+ btnShowDelay.Text = time.ToString() + "s";
}
});
- if (time / 60 > 1)
- {
- System.Threading.Thread.Sleep(time / 60 * 60000);
- }
- else
- {
- System.Threading.Thread.Sleep(1000);
- }
+ System.Threading.Thread.Sleep(1000);
+ time--;
}
Application.RunOnMainThread(() =>
{
--
Gitblit v1.8.0