/// <summary>Adds all the dates in the specified range, which includes the first and last dates, to the collection.</summary> /// <param name="start">The first date to add to the collection.</param> /// <param name="end">The last date to add to the collection.</param> // Token: 0x060055C8 RID: 21960 RVA: 0x0017C33C File Offset: 0x0017A53C public void AddRange(DateTime start, DateTime end) { this.BeginAddRange(); if (this._owner.SelectionMode == CalendarSelectionMode.SingleRange && base.Count > 0) { this.ClearInternal(); } foreach (DateTime item in SelectedDatesCollection.GetDaysInRange(start, end)) { base.Add(item); } this.EndAddRange(); }
// Token: 0x060055CD RID: 21965 RVA: 0x0017C6F4 File Offset: 0x0017A8F4 internal void AddRangeInternal(DateTime start, DateTime end) { this.BeginAddRange(); DateTime currentDate = start; foreach (DateTime dateTime in SelectedDatesCollection.GetDaysInRange(start, end)) { if (Calendar.IsValidDateSelection(this._owner, dateTime)) { base.Add(dateTime); currentDate = dateTime; } else if (this._owner.SelectionMode == CalendarSelectionMode.SingleRange) { this._owner.CurrentDate = currentDate; break; } } this.EndAddRange(); }