/// <summary> /// Add a DatesCollection to Collection /// </summary> /// <param name="Items">DatesCollection to add</param> public void Add(DatesCollection Items) { if (Items == null) { throw new ArgumentNullException("Items"); } for (int iItemsCounter = 0; iItemsCounter < Items.Count; iItemsCounter++) { //add each DatesCollectionItem to this Collection this.Add(Items[iItemsCounter]); } }
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { m_context = context; object returnObject = base.EditValue(context, provider, value); DatesCollection collection = returnObject as DatesCollection; if (collection != null) { if (m_calendar != null) { m_calendar.OnDatesChange(); } } return(returnObject); }