/// <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); }
protected internal static RadCalendarDay CreateDay( DateTime date, CalendarDayCollection owner) { return(new RadCalendarDay(date) { Owner = owner }); }
internal CalendarDayCollection(RadCalendar owner, CalendarDayCollection days, int capacity) { this.children.Capacity = capacity; this.calendar = owner; if (days != null) { this.AddRange(days); } }
public virtual CalendarDayCollection AddRange(IEnumerable <DateTime> days) { CalendarDayCollection days1 = new CalendarDayCollection(); foreach (DateTime day in days) { days1.Add(day); } return(this.AddRange(days1)); }
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); }
/// <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); }
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); }
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); }
public RadCalendarDay(DateTime date, CalendarDayCollection owner) { this.owner = owner; this.date = date; }
public RadCalendarDay(CalendarDayCollection owner) : this(DateTime.MinValue, owner) { }
internal CalendarDayCollection(CalendarDayCollection days) : this((RadCalendar)null, days, 10) { }
public CalendarDayCollection(RadCalendar owner, CalendarDayCollection days) : this(owner, days, 10) { }
/// <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); }