Пример #1
0
 private void AddHoverAttributesToRender(HtmlTextWriter writer, CssTableItemStyle current)
 {
 }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of a Calendar.
        /// </summary>
        public Calendar()
            : base()
        {
            #if (DEMO)
            IsDemoVersion = true;
            #endif

            // only check license in design time
            // we don't use runtime license check to make control easier to deploy
            //if(LicenseManager.CurrentContext.UsageMode == LicenseUsageMode.Designtime)
            //	license = LicenseManager.Validate(typeof(Calendar), this);

            _MaxDisplayedItems = 6;
            //_ShowTime = true;
            _AbbreviatedDayNames = true;
            _ViewType = CalendarViewType.MonthView;
            _SelectedDate = DateTime.Now.Date;
            _HighlightedDate = DateTime.Now.Date;
            _Items = new CalendarItemCollection(this);
            //_holidays = new HolidayCollection(this);

            _CalendarItemDefaultStyle = new CssTableItemStyle();
            _CalendarItemHoverStyle = new CssTableItemStyle();
            _CalendarItemSelectedStyle = new CssTableItemStyle();
            _CalendarItemInactiveStyle = new CssTableItemStyle();
            _CalendarItemHolidayStyle = new CssTableItemStyle();
            //_CalendarDefaultStyle = new TableStyle();
            _CalendarHeaderStyle = new CssTableItemStyle();

            _WorkWeek = CalendarDayOfWeek.Monday | CalendarDayOfWeek.Tuesday | CalendarDayOfWeek.Wednesday | CalendarDayOfWeek.Thursday | CalendarDayOfWeek.Friday;
            _FirstDayOfWeek = CalendarDayOfWeek.Sunday;

            _Dates = new DateCollection(this);
        }