diff options
| author | Michael <[email protected]> | 2017-02-24 21:55:23 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-24 21:55:23 -0500 |
| commit | 5573e82ca48bb891bbaf6c2f05215dba8e441ce8 (patch) | |
| tree | 5edd08769817553e9b17a8a6caaad269d83eeb3e /ShiftOS.WinForms/Applications/Notifications.cs | |
| parent | dc78cb99e6e98b5612d43f039e2e1fb7ce155bb8 (diff) | |
| download | shiftos_thereturn-5573e82ca48bb891bbaf6c2f05215dba8e441ce8.tar.gz shiftos_thereturn-5573e82ca48bb891bbaf6c2f05215dba8e441ce8.tar.bz2 shiftos_thereturn-5573e82ca48bb891bbaf6c2f05215dba8e441ce8.zip | |
Notification app resets UI when new note is posted
Diffstat (limited to 'ShiftOS.WinForms/Applications/Notifications.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Notifications.cs | 14 |
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; } |
