diff options
| author | Michael <[email protected]> | 2017-02-25 14:46:16 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-25 14:46:21 -0500 |
| commit | 68eb6e95c6611bafa8a820ad3f8c123a351a9be9 (patch) | |
| tree | f1810917bb7c0f040e55e49c2c97a003ffdb5d1c /ShiftOS_TheReturn/NotificationDaemon.cs | |
| parent | bd41ad18fe55fcd5bcba9fdbd0bb2c86edd01411 (diff) | |
| download | shiftos_thereturn-68eb6e95c6611bafa8a820ad3f8c123a351a9be9.tar.gz shiftos_thereturn-68eb6e95c6611bafa8a820ad3f8c123a351a9be9.tar.bz2 shiftos_thereturn-68eb6e95c6611bafa8a820ad3f8c123a351a9be9.zip | |
Button for marking all notes as read.
Diffstat (limited to 'ShiftOS_TheReturn/NotificationDaemon.cs')
| -rw-r--r-- | ShiftOS_TheReturn/NotificationDaemon.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/NotificationDaemon.cs b/ShiftOS_TheReturn/NotificationDaemon.cs index 3ea8a54..5adc026 100644 --- a/ShiftOS_TheReturn/NotificationDaemon.cs +++ b/ShiftOS_TheReturn/NotificationDaemon.cs @@ -36,6 +36,13 @@ namespace ShiftOS.Engine } + 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(); |
