Cleaned up the current time display

Cleaned up the current time display
Sample code improvement.

- Decoupled from Form events HelperMethods.cs and DataGenerator
- Added threshold support to Magensa