aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Notifications.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Applications/Notifications.cs')
-rw-r--r--ShiftOS.WinForms/Applications/Notifications.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/Notifications.cs b/ShiftOS.WinForms/Applications/Notifications.cs
index 9e1b36b..aa8ba71 100644
--- a/ShiftOS.WinForms/Applications/Notifications.cs
+++ b/ShiftOS.WinForms/Applications/Notifications.cs
@@ -18,10 +18,23 @@ namespace ShiftOS.WinForms.Applications
public Notifications()
{
InitializeComponent();
+ onMade = (note) =>
+ {
+ SetupUI();
+ };
+ }
+
+ Action<Notification> onMade = null;
+
+ public void SetupUI()
+ {
+
}
public void OnLoad()
{
+ SetupUI();
+ NotificationDaemon.NotificationMade += onMade;
}
public void OnSkinLoad()
@@ -30,6 +43,7 @@ namespace ShiftOS.WinForms.Applications
public bool OnUnload()
{
+ NotificationDaemon.NotificationMade -= onMade;
return true;
}