Пример #1
0
        private string[] GetMinutes(string value)
        {
            var minutes = Convert.ToInt16(value);

            if (minutes > 59)
            {
                return(null);
            }
            else
            {
                return(new string[] {
                    TimeConverterHelper.GetRowString(minutes, isfirstRow: true, isHour: false),
                    TimeConverterHelper.GetRowString(minutes, isfirstRow: false, isHour: false)
                });
            }
        }
Пример #2
0
        private string[] GetHours(string value)
        {
            var hours = Convert.ToInt16(value);

            if (hours > 24)
            {
                return(null);
            }
            else
            {
                return(new string[] {
                    TimeConverterHelper.GetRowString(hours, isfirstRow: true, isHour: true),
                    TimeConverterHelper.GetRowString(hours, isfirstRow: false, isHour: true)
                });
            }
        }