From 8a60eba70b4875c7e382b933d1c835f6f857cdd0 Mon Sep 17 00:00:00 2001 From: william341 Date: Sat, 25 Feb 2017 15:04:35 -0700 Subject: [PATCH] infernal noises from hell (aka DooM --- ShiftOS_TheReturn/NotificationDaemon.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ShiftOS_TheReturn/NotificationDaemon.cs b/ShiftOS_TheReturn/NotificationDaemon.cs index 034db7e..6eb0b7b 100644 --- a/ShiftOS_TheReturn/NotificationDaemon.cs +++ b/ShiftOS_TheReturn/NotificationDaemon.cs @@ -37,6 +37,13 @@ namespace ShiftOS.Engine public static event Action NotificationRead; + public static void MarkAllRead() + { + var notes = GetAllFromFile(); + for (int i = 0; i < notes.Length; i++) + MarkRead(i); + } + public static void MarkRead(int note) { var notes = GetAllFromFile(); @@ -56,6 +63,7 @@ namespace ShiftOS.Engine c++; //gahh I hate that programming language. return c; } + } public struct Notification