Ejemplo n.º 1
0
        public void Add(DateItemCollection dateItems)
        {
            if (dateItems == null)
            {
                throw new ArgumentNullException("dateItems");
            }

            for (int i = 0; i < dateItems.Count; i++)
            {
                this.Add(dateItems[i]);
            }
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public DateItemCollection(KellCalendar owner, DateItemCollection dateItems) : this(owner)
 {
     this.Add(dateItems);
 }