コード例 #1
0
            // Token: 0x060008AF RID: 2223 RVA: 0x0002FFC4 File Offset: 0x0002E1C4
            public override string ToString()
            {
                string dayOfWeekString = Recurrence.GetDayOfWeekString(this.day);

                if (this.occurrenceNumber != 0)
                {
                    return(this.occurrenceNumber.ToString() + dayOfWeekString);
                }
                return(dayOfWeekString);
            }
コード例 #2
0
        // Token: 0x060008A2 RID: 2210 RVA: 0x0002FA0C File Offset: 0x0002DC0C
        public override string ToString()
        {
            StringBuilder stringBuilder = new StringBuilder();

            if ((this.props & RecurrenceProperties.Frequency) != RecurrenceProperties.None)
            {
                stringBuilder.Append("FREQ");
                stringBuilder.Append('=');
                stringBuilder.Append(Recurrence.GetFrequencyString(this.freq));
            }
            if ((this.props & RecurrenceProperties.UntilDate) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";UNTIL");
                stringBuilder.Append('=');
                stringBuilder.Append(CalendarCommon.FormatDate(this.untilDate));
            }
            if ((this.props & RecurrenceProperties.UntilDateTime) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";UNTIL");
                stringBuilder.Append('=');
                stringBuilder.Append(CalendarCommon.FormatDateTime(this.untilDateTime));
            }
            if ((this.props & RecurrenceProperties.Count) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";COUNT");
                stringBuilder.Append('=');
                stringBuilder.Append(this.count);
            }
            if ((this.props & RecurrenceProperties.Interval) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";INTERVAL");
                stringBuilder.Append('=');
                stringBuilder.Append(this.interval);
            }
            if ((this.props & RecurrenceProperties.BySecond) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";BYSECOND");
                stringBuilder.Append('=');
                this.OutputList(this.bySecond, stringBuilder);
            }
            if ((this.props & RecurrenceProperties.ByMinute) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";BYMINUTE");
                stringBuilder.Append('=');
                this.OutputList(this.byMinute, stringBuilder);
            }
            if ((this.props & RecurrenceProperties.ByHour) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";BYHOUR");
                stringBuilder.Append('=');
                this.OutputList(this.byHour, stringBuilder);
            }
            if ((this.props & RecurrenceProperties.ByDay) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";BYDAY");
                stringBuilder.Append('=');
                int num = this.byDay.Length;
                if (num > 0)
                {
                    stringBuilder.Append(this.byDay[0]);
                }
                for (int i = 1; i < num; i++)
                {
                    stringBuilder.Append(',');
                    stringBuilder.Append(this.byDay[i].ToString());
                }
            }
            if ((this.props & RecurrenceProperties.ByMonthDay) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";BYMONTHDAY");
                stringBuilder.Append('=');
                this.OutputList(this.byMonthDay, stringBuilder);
            }
            if ((this.props & RecurrenceProperties.ByYearDay) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";BYYEARDAY");
                stringBuilder.Append('=');
                this.OutputList(this.byYearDay, stringBuilder);
            }
            if ((this.props & RecurrenceProperties.ByWeek) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";BYWEEKNO");
                stringBuilder.Append('=');
                this.OutputList(this.byWeekNumber, stringBuilder);
            }
            if ((this.props & RecurrenceProperties.ByMonth) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";BYMONTH");
                stringBuilder.Append('=');
                this.OutputList(this.byMonth, stringBuilder);
            }
            if ((this.props & RecurrenceProperties.BySetPosition) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";BYSETPOS");
                stringBuilder.Append('=');
                this.OutputList(this.bySetPos, stringBuilder);
            }
            if ((this.props & RecurrenceProperties.WeekStart) != RecurrenceProperties.None)
            {
                stringBuilder.Append(";WKST");
                stringBuilder.Append('=');
                stringBuilder.Append(Recurrence.GetDayOfWeekString(this.workWeekStart));
            }
            return(stringBuilder.ToString());
        }