mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
feat: Adds SecondsRemainingFeedback to SecondsCountdownTimer
This commit is contained in:
@@ -23,6 +23,8 @@ namespace PepperDash.Essentials.Core
|
|||||||
public IntFeedback PercentFeedback { get; private set; }
|
public IntFeedback PercentFeedback { get; private set; }
|
||||||
public StringFeedback TimeRemainingFeedback { get; private set; }
|
public StringFeedback TimeRemainingFeedback { get; private set; }
|
||||||
|
|
||||||
|
public IntFeedback SecondsRemainingFeedback { get; private set; }
|
||||||
|
|
||||||
public bool CountsDown { get; set; }
|
public bool CountsDown { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -64,6 +66,8 @@ namespace PepperDash.Essentials.Core
|
|||||||
: String.Format("{0:00}:{1:00}", timeSpan.Minutes, timeSpan.Seconds);
|
: String.Format("{0:00}:{1:00}", timeSpan.Minutes, timeSpan.Seconds);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
SecondsRemainingFeedback = new IntFeedback(() => (int)(FinishTime - DateTime.Now).TotalSeconds);
|
||||||
|
|
||||||
PercentFeedback =
|
PercentFeedback =
|
||||||
new IntFeedback(
|
new IntFeedback(
|
||||||
() =>
|
() =>
|
||||||
@@ -144,6 +148,7 @@ namespace PepperDash.Essentials.Core
|
|||||||
|
|
||||||
PercentFeedback.FireUpdate();
|
PercentFeedback.FireUpdate();
|
||||||
TimeRemainingFeedback.FireUpdate();
|
TimeRemainingFeedback.FireUpdate();
|
||||||
|
SecondsRemainingFeedback.FireUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user