diff options
| author | william341 <[email protected]> | 2017-02-25 15:04:35 -0700 |
|---|---|---|
| committer | william341 <[email protected]> | 2017-02-25 15:04:35 -0700 |
| commit | 8a60eba70b4875c7e382b933d1c835f6f857cdd0 (patch) | |
| tree | 3acae4c32293136ec3a9d310a4f484a11958e9fa | |
| parent | f4ce36a18a125160dc3faa1110e060e9a58a7274 (diff) | |
| download | shiftos_thereturn-8a60eba70b4875c7e382b933d1c835f6f857cdd0.tar.gz shiftos_thereturn-8a60eba70b4875c7e382b933d1c835f6f857cdd0.tar.bz2 shiftos_thereturn-8a60eba70b4875c7e382b933d1c835f6f857cdd0.zip | |
infernal noises from hell (aka DooM
| -rw-r--r-- | ShiftOS_TheReturn/NotificationDaemon.cs | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
