Ejemplo n.º 1
0
        internal override LocalizedString When()
        {
            LocalizedString result;

            if (base.RecurrenceInterval == 1)
            {
                if (base.RecurrenceObjectType == RecurrenceObjectType.CalendarRecurrence)
                {
                    result = ClientStrings.CalendarWhenDailyEveryDay;
                }
                else
                {
                    result = ClientStrings.TaskWhenDailyEveryDay;
                }
            }
            else if (base.RecurrenceInterval == 2)
            {
                if (base.RecurrenceObjectType == RecurrenceObjectType.CalendarRecurrence)
                {
                    result = ClientStrings.CalendarWhenEveryOtherDay;
                }
                else
                {
                    result = ClientStrings.TaskWhenEveryOtherDay;
                }
            }
            else if (base.RecurrenceObjectType == RecurrenceObjectType.CalendarRecurrence)
            {
                result = ClientStrings.CalendarWhenDailyEveryNDays(base.RecurrenceInterval);
            }
            else
            {
                result = ClientStrings.TaskWhenDailyEveryNDays(base.RecurrenceInterval);
            }
            return(result);
        }