Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="date">the DateTime object associated with this particular RadCalendarDay.</param>
        /// <param name="owner">the CalendarDayCollection that contains this particular RadCalendarDay.</param>
        /// <returns></returns>
        internal protected static RadCalendarDay CreateDay(DateTime date, CalendarDayCollection owner)
        {
            RadCalendarDay temp = new RadCalendarDay(date);

            temp.Owner = owner;
            return(temp);
        }
Exemplo n.º 2
0
 protected internal static RadCalendarDay CreateDay(
     DateTime date,
     CalendarDayCollection owner)
 {
     return(new RadCalendarDay(date)
     {
         Owner = owner
     });
 }
Exemplo n.º 3
0
 internal CalendarDayCollection(RadCalendar owner, CalendarDayCollection days, int capacity)
 {
     this.children.Capacity = capacity;
     this.calendar          = owner;
     if (days != null)
     {
         this.AddRange(days);
     }
 }
Exemplo n.º 4
0
        public virtual CalendarDayCollection AddRange(IEnumerable <DateTime> days)
        {
            CalendarDayCollection days1 = new CalendarDayCollection();

            foreach (DateTime day in days)
            {
                days1.Add(day);
            }
            return(this.AddRange(days1));
        }
Exemplo n.º 5
0
        public virtual CalendarDayCollection AddRange(CalendarDayCollection days)
        {
            int count = this.children.Count;

            this.children.AddRange((IEnumerable <RadCalendarDay>)days);
            for (int index = count; index < this.children.Count; ++index)
            {
                this.UpdateOwnerShip(this.children[index]);
            }
            this.UpdateVisuals();
            return(days);
        }
Exemplo n.º 6
0
        /// <summary>
        /// Adds an collection of previously created RadCalendarDay objects to the collection.
        /// </summary>
        /// <param name="days">An array of RadCalendarDay objects representing the views to add to the collection.</param>
        public virtual CalendarDayCollection AddRange(CalendarDayCollection days)
        {
            int updateIndex = this.children.Count;

            this.children.AddRange(days);
            for (int i = updateIndex; i < this.children.Count; i++)
            {
                this.UpdateOwnerShip(this.children[i]);
            }
            this.UpdateVisuals();
            return(days);
        }
Exemplo n.º 7
0
        private ArrayList FindInternal(DateTime key, CalendarDayCollection viewsCollectionToLookIn)
        {
            ArrayList foundDays = new ArrayList();

            if ((viewsCollectionToLookIn == null) || (foundDays == null))
            {
                return(null);
            }
            for (int i = 0; i < viewsCollectionToLookIn.Count; i++)
            {
                if ((viewsCollectionToLookIn[i] != null) &&
                    DateTime.Equals(key, viewsCollectionToLookIn[i].Date))
                {
                    foundDays.Add(viewsCollectionToLookIn[i]);
                }
            }
            return(foundDays);
        }
Exemplo n.º 8
0
        private ArrayList FindInternal(
            DateTime key,
            CalendarDayCollection viewsCollectionToLookIn)
        {
            ArrayList arrayList = new ArrayList();

            if (viewsCollectionToLookIn == null || arrayList == null)
            {
                return((ArrayList)null);
            }
            for (int index = 0; index < viewsCollectionToLookIn.Count; ++index)
            {
                if (viewsCollectionToLookIn[index] != null && DateTime.Equals(key, viewsCollectionToLookIn[index].Date))
                {
                    arrayList.Add((object)viewsCollectionToLookIn[index]);
                }
            }
            return(arrayList);
        }
Exemplo n.º 9
0
 public RadCalendarDay(DateTime date, CalendarDayCollection owner)
 {
     this.owner = owner;
     this.date  = date;
 }
Exemplo n.º 10
0
 public RadCalendarDay(CalendarDayCollection owner)
     : this(DateTime.MinValue, owner)
 {
 }
Exemplo n.º 11
0
 internal CalendarDayCollection(CalendarDayCollection days)
     : this((RadCalendar)null, days, 10)
 {
 }
Exemplo n.º 12
0
 public CalendarDayCollection(RadCalendar owner, CalendarDayCollection days)
     : this(owner, days, 10)
 {
 }
Exemplo n.º 13
0
        /// <summary>
        /// Creates a new CalendarDayCollection object that is a copy of the current instance.
        /// </summary>
        /// <returns>A new CalendarDayCollection object that is a copy of this instance.</returns>
        public virtual CalendarDayCollection Clone()
        {
            CalendarDayCollection clonedCollection = new CalendarDayCollection(this);

            return(clonedCollection);
        }