示例#1
0
 protected override string Format(ITimeFormatter formatter) {
     return formatter.GetCalendarPeriod(StartYearName,
                                        EndYearName,
                                        formatter.GetShortDate(Start),
                                        formatter.GetShortDate(End),
                                        Duration);
 }
示例#2
0
 protected override string Format(ITimeFormatter formatter)
 {
     return(formatter.GetCalendarPeriod(StartYearName,
                                        EndYearName,
                                        formatter.GetShortDate(Start),
                                        formatter.GetShortDate(End),
                                        Duration));
 }
示例#3
0
        }         // AddMonths

        // ----------------------------------------------------------------------
        protected override string Format(ITimeFormatter formatter)
        {
            return(formatter.GetCalendarPeriod(string.Format("{0}/{1}", Year, Month),
                                               formatter.GetShortDate(Start), formatter.GetShortDate(End), Duration));
        }         // Format
示例#4
0
 protected override string Format(ITimeFormatter formatter)
 {
     return(formatter.GetCalendarPeriod(Year.ToString(CultureInfo.InvariantCulture),
                                        formatter.GetShortDate(Start), formatter.GetShortDate(End), Duration));
 }