Ejemplo n.º 1
0
 public RecurrenceRule()
 {
     this.Freq     = Frequency.Never;
     this.Until    = DateTime.MinValue;
     this.Count    = -1;
     this.Interval = 1;
     this.WKST     = WeekDay.Parse("mo");
     this.ExDates  = new List <ExDate>();
 }
Ejemplo n.º 2
0
        public object Clone()
        {
            var o = (RecurrenceRule)this.MemberwiseClone();

            o.ExDates = new List <ExDate>();
            this.ExDates.ForEach(d => o.ExDates.Add(d));

            if (ByDay != null)
            {
                var days = new List <WeekDay>();
                foreach (var d in ByDay)
                {
                    days.Add(WeekDay.Parse(d.ToString()));
                }

                o.ByDay = days.ToArray();
            }
            o.WKST = WeekDay.Parse(this.WKST.ToString());
            return(o);
        }