aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Notifications.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-02-25 14:48:57 -0500
committerlempamo <[email protected]>2017-02-25 14:48:57 -0500
commitce0819e257497d9307a21770bb80423bbcd53248 (patch)
treef1810917bb7c0f040e55e49c2c97a003ffdb5d1c /ShiftOS.WinForms/Applications/Notifications.cs
parent4c9640dcb26e110aac0b8be85db6aed9aeb246a6 (diff)
parent68eb6e95c6611bafa8a820ad3f8c123a351a9be9 (diff)
downloadshiftos_thereturn-ce0819e257497d9307a21770bb80423bbcd53248.tar.gz
shiftos_thereturn-ce0819e257497d9307a21770bb80423bbcd53248.tar.bz2
shiftos_thereturn-ce0819e257497d9307a21770bb80423bbcd53248.zip
Merge remote-tracking branch 'refs/remotes/shiftos-game/master'
Diffstat (limited to 'ShiftOS.WinForms/Applications/Notifications.cs')
-rw-r--r--ShiftOS.WinForms/Applications/Notifications.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/ShiftOS.WinForms/Applications/Notifications.cs b/ShiftOS.WinForms/Applications/Notifications.cs
index 540d2b5..3ce3e58 100644
--- a/ShiftOS.WinForms/Applications/Notifications.cs
+++ b/ShiftOS.WinForms/Applications/Notifications.cs
@@ -23,14 +23,9 @@ namespace ShiftOS.WinForms.Applications
{
SetupUI();
};
- onRead += () =>
- {
- SetupUI();
- };
}
Action<Notification> onMade = null;
- Action onRead = null;
public void SetupUI()
{
@@ -232,7 +227,6 @@ namespace ShiftOS.WinForms.Applications
{
SetupUI();
NotificationDaemon.NotificationMade += onMade;
- NotificationDaemon.NotificationRead += onRead;
}
public void OnSkinLoad()
@@ -242,12 +236,16 @@ namespace ShiftOS.WinForms.Applications
public bool OnUnload()
{
NotificationDaemon.NotificationMade -= onMade;
- NotificationDaemon.NotificationRead -= onRead;
return true;
}
public void OnUpgrade()
{
}
+
+ private void btnmarkallread_Click(object sender, EventArgs e)
+ {
+ NotificationDaemon.MarkAllRead();
+ }
}
}