Example #1
0
 public bool Contains(Holiday value)
 {
     return(InnerList.Contains(value));
 }
Example #2
0
 public int IndexOf(Holiday value)
 {
     return(InnerList.IndexOf(value));
 }
Example #3
0
 public int IndexOf(Holiday value, int StartIndex)
 {
     return(InnerList.IndexOf(value, StartIndex));
 }
Example #4
0
 public int IndexOf(Holiday value)
 {
     return InnerList.IndexOf(value);
 }
Example #5
0
 public void Add(Holiday value)
 {
     InnerList.Add(value);
 }
Example #6
0
 public bool Contains(Holiday value)
 {
     return InnerList.Contains(value);
 }
Example #7
0
 public void Add(Holiday value)
 {
     InnerList.Add(value);
 }
Example #8
0
 public int IndexOf(Holiday value, int StartIndex)
 {
     return InnerList.IndexOf(value, StartIndex);
 }
Example #9
0
 public int IndexOf(Holiday value, int StartIndex, int Count)
 {
     return InnerList.IndexOf(value, StartIndex, Count);
 }
Example #10
0
        /// <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();
            }
        }