コード例 #1
0
        private string GetBottomRow(int hours)
        {
            int numberBottomHourLampsOn = hours % 5; // get the number of lamps on, on bottom row

            return(LampRow.GetLampRow(TOTAL_LAMPS_PER_LINE, numberBottomHourLampsOn, StatusLampEnum.RED));
        }
コード例 #2
0
        private string GetBottomRow(int minutes)
        {
            int numberBottomMinutesLamps = minutes % 5;

            return(LampRow.GetLampRow(TOTAL_LAMPS_OF_BOTTOM_ROW, numberBottomMinutesLamps, StatusLampEnum.YELLOW));
        }
コード例 #3
0
        private string GetTopRow(int hours)
        {
            int numberTopHourLampsOn = hours / 5; // get the number of lamps on, on top row

            return(LampRow.GetLampRow(TOTAL_LAMPS_PER_LINE, numberTopHourLampsOn, StatusLampEnum.RED));
        }