public void Add(DateItemCollection dateItems) { if (dateItems == null) { throw new ArgumentNullException("dateItems"); } for (int i = 0; i < dateItems.Count; i++) { this.Add(dateItems[i]); } }
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { m_context = context; //MonthCalendar originalControl = (MonthCalendar) context.Instance; //m_calendar = originalControl; object returnObject = base.EditValue(context, provider, value); DateItemCollection collection = returnObject as DateItemCollection; if (collection != null) { collection.ModifiedEvent(); } return(returnObject); }
public DateItemCollection(MonthCalendar owner, DateItemCollection dateItems) : this(owner) { this.Add(dateItems); }