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