diff options
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() + { + } + } +} |
