diff options
| author | lempamo <[email protected]> | 2017-02-25 08:21:55 -0500 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-02-25 08:21:55 -0500 |
| commit | cc4b3c6f091828f2b44ffa3688f551ed09557ec6 (patch) | |
| tree | 5edd08769817553e9b17a8a6caaad269d83eeb3e /ShiftOS.WinForms/Applications/Notifications.cs | |
| parent | 0b65949e74b225603e04971ccba8430bded90769 (diff) | |
| parent | 5573e82ca48bb891bbaf6c2f05215dba8e441ce8 (diff) | |
| download | shiftos_thereturn-cc4b3c6f091828f2b44ffa3688f551ed09557ec6.tar.gz shiftos_thereturn-cc4b3c6f091828f2b44ffa3688f551ed09557ec6.tar.bz2 shiftos_thereturn-cc4b3c6f091828f2b44ffa3688f551ed09557ec6.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.cs | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/Notifications.cs b/ShiftOS.WinForms/Applications/Notifications.cs new file mode 100644 index 0000000..aa8ba71 --- /dev/null +++ b/ShiftOS.WinForms/Applications/Notifications.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using ShiftOS.Engine; + +namespace ShiftOS.WinForms.Applications +{ + [DefaultTitle("Notifications")] + [Launcher("Notifications", true, "al_notifications", "Utilities")] + public partial class Notifications : UserControl, IShiftOSWindow + { + public Notifications() + { + InitializeComponent(); + onMade = (note) => + { + SetupUI(); + }; + } + + Action<Notification> onMade = null; + + public void SetupUI() + { + + } + + public void OnLoad() + { + SetupUI(); + NotificationDaemon.NotificationMade += onMade; + } + + public void OnSkinLoad() + { + } + + public bool OnUnload() + { + NotificationDaemon.NotificationMade -= onMade; + return true; + } + + public void OnUpgrade() + { + } + } +} |
