public bool Contains(Holiday value) { return(InnerList.Contains(value)); }
public int IndexOf(Holiday value) { return(InnerList.IndexOf(value)); }
public int IndexOf(Holiday value, int StartIndex) { return(InnerList.IndexOf(value, StartIndex)); }
public int IndexOf(Holiday value) { return InnerList.IndexOf(value); }
public void Add(Holiday value) { InnerList.Add(value); }
public bool Contains(Holiday value) { return InnerList.Contains(value); }
public int IndexOf(Holiday value, int StartIndex) { return InnerList.IndexOf(value, StartIndex); }
public int IndexOf(Holiday value, int StartIndex, int Count) { return InnerList.IndexOf(value, StartIndex, Count); }
/// <summary> /// Called when the Add Holiday menu item is clicked. /// </summary> /// <param name="sender">The source object</param> /// <param name="e">Event arguments</param> private void OnAddHoliday(object sender, EventArgs e) { Calendar cal = (Calendar)Component; PropertyDescriptor itemsDesc = DesignUtil.GetPropertyDescriptor(cal, "Holidays"); if (itemsDesc != null) { // Tell the designer that we're changing the property RaiseComponentChanging(itemsDesc); // Do the change Holiday holiday = new Holiday(DateTime.Now.Date, "Holiday"); cal.Holidays.Add(holiday); // Tell the designer that we've changed the property RaiseComponentChanged(itemsDesc, null, null); UpdateDesignTimeHtml(); } }