mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
closes #60 closes #63 closes #51 Exposed and tested occsensor names and raw states. Exposed and tested SetTopBox. Changed conditional formatting for SecondsCountdownTimer
This commit is contained in:
parent
ddf2bd4c64
commit
8f52f49884
2 changed files with 489 additions and 478 deletions
|
|
@ -50,7 +50,18 @@ namespace PepperDash.Essentials.Core
|
||||||
if (StartTime == null || FinishTime == null)
|
if (StartTime == null || FinishTime == null)
|
||||||
return "";
|
return "";
|
||||||
var timeSpan = FinishTime - DateTime.Now;
|
var timeSpan = FinishTime - DateTime.Now;
|
||||||
return Math.Round(timeSpan.TotalSeconds).ToString();
|
|
||||||
|
if (timeSpan.TotalSeconds < 60)
|
||||||
|
{
|
||||||
|
return Math.Round(timeSpan.TotalSeconds).ToString();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.Console(2, this, "timeSpan.Minutes == {0}, timeSpan.Seconds == {1}", timeSpan.Minutes, timeSpan.Seconds);
|
||||||
|
return String.Format("{0:D2}:{1:D2}",
|
||||||
|
timeSpan.Minutes,
|
||||||
|
timeSpan.Seconds);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
PercentFeedback = new IntFeedback(() =>
|
PercentFeedback = new IntFeedback(() =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue