diff options
| author | Michael <[email protected]> | 2017-06-22 20:52:01 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-06-22 20:52:01 -0400 |
| commit | 42a7829864cd6cf2dff2a21f9dbed208b154c6f7 (patch) | |
| tree | 15a160046e2531014a9366246787d4c49c5897de /ShiftOS.WinForms/Applications/Clock.cs | |
| parent | bb38dad59be6583e4c0a2fe851f264ed8d1fec2e (diff) | |
| download | shiftos_thereturn-42a7829864cd6cf2dff2a21f9dbed208b154c6f7.tar.gz shiftos_thereturn-42a7829864cd6cf2dff2a21f9dbed208b154c6f7.tar.bz2 shiftos_thereturn-42a7829864cd6cf2dff2a21f9dbed208b154c6f7.zip | |
Fix some major Appscape bugs.
Diffstat (limited to 'ShiftOS.WinForms/Applications/Clock.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Clock.cs | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/Clock.cs b/ShiftOS.WinForms/Applications/Clock.cs new file mode 100644 index 0000000..b4f6793 --- /dev/null +++ b/ShiftOS.WinForms/Applications/Clock.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using ShiftOS.Engine; +using ShiftOS.WinForms.Tools; + +namespace ShiftOS.WinForms.Applications +{ + [RequiresUpgrade("clock")] + [WinOpen("clock")] + [Launcher("Clock", false, null, "Accessories")] + [DefaultTitle("Clock")] + public partial class Clock : UserControl, IShiftOSWindow + { + public Clock() + { + InitializeComponent(); + clocktimer = new Timer(); + clocktimer.Interval = 100; + clocktimer.Tick += (o, a) => + { + lbheader.CenterParent(); + lbheader.Top = 15; + lbcurrenttime.Text = Terminal.GetTime(); + lbcurrenttime.CenterParent(); + }; + } + + private Timer clocktimer = null; + + public void OnLoad() + { + clocktimer.Start(); + } + + public void OnSkinLoad() + { + } + + public bool OnUnload() + { + return true; + } + + public void OnUpgrade() + { + } + } +} |
