From 334daf8dc48d6798524162228ae9cbe221773010 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期二, 22 十二月 2020 13:55:15 +0800 Subject: [PATCH] Merge branch 'NewFilePath' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into NewFilePath --- 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