Beispiel #1
0
 /// <summary>
 /// Constructor creating new clock times from a string
 /// </summary>
 /// <param name="time">String with the clock time in the format HH:mm</param>
 public ClockDisplay(string time)
 {
     _hourDisplay   = new NumberDisplay(23);
     _minuteDisplay = new NumberDisplay(59);
     Time           = time;
 }
Beispiel #2
0
 public ClockDisplay(int hour, int minute)
 {
     _hourDisplay = new NumberDisplay(Hours, hour);
     _minuteDisplay = new NumberDisplay(Minutes, minute);
 }
Beispiel #3
0
 /// <summary>
 /// Constructor creating new clock times
 /// </summary>
 /// <param name="hour">The hour to be set</param>
 /// <param name="minute">The minute to be set</param>
 public ClockDisplay(int hour, int minute)
 {
     _hourDisplay   = new NumberDisplay(23, hour);
     _minuteDisplay = new NumberDisplay(59, minute);
 }