diff ServerMonitor/Objects/Schedule.cs @ 12:d92176c5398a

Better display of schedule name.
author Brad Greco <brad@bgreco.net>
date Mon, 15 Apr 2019 19:24:55 -0400
parents 052aa62cb42a
children 68d7834dc28e
line wrap: on
line diff
--- a/ServerMonitor/Objects/Schedule.cs	Mon Apr 15 19:24:25 2019 -0400
+++ b/ServerMonitor/Objects/Schedule.cs	Mon Apr 15 19:24:55 2019 -0400
@@ -64,6 +64,11 @@
             }
             return nextTime;
         }
+
+        public override string ToString()
+        {
+            return string.Format("Every {0} {1}", Frequency, Units.ToString().ToLower() + (Frequency == 1 ? "" : "s"));
+        }
     }
 
     public enum FrequencyUnits { Second, Minute, Hour, Day }