diff options
| author | Michael <[email protected]> | 2017-02-25 10:03:36 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-25 10:03:36 -0500 |
| commit | 910a1c455e0176bfff7776e47f9160e349cfaf67 (patch) | |
| tree | 0d8b17eafb1bd76d3b6daadabc2452bd807d72e1 /ShiftOS.WinForms/WinformsDesktop.cs | |
| parent | ea18e37bffacbb8d52b875eecc860dc985ba8bc5 (diff) | |
| download | shiftos_thereturn-910a1c455e0176bfff7776e47f9160e349cfaf67.tar.gz shiftos_thereturn-910a1c455e0176bfff7776e47f9160e349cfaf67.tar.bz2 shiftos_thereturn-910a1c455e0176bfff7776e47f9160e349cfaf67.zip | |
Notification counter on desktop.
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 += () => { |
