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