Esempio n. 1
0
 private void InitClock(TimeSpan time)
 {
     HourTopRow.TurnOn(GetTopRowHours(time));
     HourBottomRow.TurnOn(GetBottomRowHours(time));
     MinutTopRow.TurnOn(GetTopRowMinutes(time));
     MinutBottomRow.TurnOn(GetBottomRowMinutes(time));
     SecondsRow.TurnOn(GetSeconds(time));
 }
Esempio n. 2
0
        public override string ToString()
        {
            var builder = new StringBuilder();

            builder.AppendLine(SecondsRow.ToString())
            .AppendLine(HourTopRow.ToString())
            .AppendLine(HourBottomRow.ToString())
            .AppendLine(MinutTopRow.ToString())
            .Append(MinutBottomRow.ToString());

            return(builder.ToString());
        }