comparison 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
comparison
equal deleted inserted replaced
11:75ca86e0862c 12:d92176c5398a
62 nextTime = nextTime.Date + StartTime; 62 nextTime = nextTime.Date + StartTime;
63 } 63 }
64 } 64 }
65 return nextTime; 65 return nextTime;
66 } 66 }
67
68 public override string ToString()
69 {
70 return string.Format("Every {0} {1}", Frequency, Units.ToString().ToLower() + (Frequency == 1 ? "" : "s"));
71 }
67 } 72 }
68 73
69 public enum FrequencyUnits { Second, Minute, Hour, Day } 74 public enum FrequencyUnits { Second, Minute, Hour, Day }
70 } 75 }