diff options
| author | lempamo <[email protected]> | 2017-02-25 10:07:28 -0500 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-02-25 10:07:28 -0500 |
| commit | 046560fe991f439c8cc45e8e355bf9f801e514ac (patch) | |
| tree | e8c14c7cfbc192d2e0cf60e3faef32d24b86ba0c /ShiftOS.WinForms/WinformsDesktop.cs | |
| parent | 271c973c3f1de0afd96a4ad3d0e0ed43b5e1b4f8 (diff) | |
| parent | 413a7da898716d43711dcfe99791b329bb6d866b (diff) | |
| download | shiftos_thereturn-046560fe991f439c8cc45e8e355bf9f801e514ac.tar.gz shiftos_thereturn-046560fe991f439c8cc45e8e355bf9f801e514ac.tar.bz2 shiftos_thereturn-046560fe991f439c8cc45e8e355bf9f801e514ac.zip | |
Merge remote-tracking branch 'refs/remotes/shiftos-game/master'
Diffstat (limited to 'ShiftOS.WinForms/WinformsDesktop.cs')
| -rw-r--r-- | ShiftOS.WinForms/WinformsDesktop.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index ded68ba..957c793 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -60,6 +60,14 @@ namespace ShiftOS.WinForms { InitializeComponent(); this.TopMost = false; + + NotificationDaemon.NotificationMade += (note) => + { + //Soon this will pop a balloon note. + btnnotifications.Text = "Notifications (" + NotificationDaemon.GetUnreadCount().ToString() + ")"; + + }; + this.LocationChanged += (o, a) => { if (this.Left != 0) @@ -80,6 +88,10 @@ namespace ShiftOS.WinForms { if(this.Visible == true) this.Invoke(new Action(() => SetupDesktop())); + this.Invoke(new Action(() => + { + btnnotifications.Text = "Notifications (" + NotificationDaemon.GetUnreadCount().ToString() + ")"; + })); }; Shiftorium.Installed += () => { |
