Esempio n. 1
0
 public CalendarGenerator(TCalendarView picker, DateTime displayMonth, DateTime?selectedDate, DayOfWeek firstDayOfWeek)
 {
     _picker         = picker;
     _selectedDate   = selectedDate;
     _displayMonth   = new DateTime(displayMonth.Year, displayMonth.Month, 1);
     _firstDayOfWeek = firstDayOfWeek;
 }
        public DefaultCalendarGrid(TCalendarView calendarView, DateTime displayMonth, bool isMouseOver)
            : base(calendarView, displayMonth)
        {
            base.Background = CalendarView.GridBackground;

            if (isMouseOver)
            {
                ShowArrows();
            }
        }
Esempio n. 3
0
        public TCalendarGrid(TCalendarView calendarView, DateTime displayMonth)
        {
            CalendarView   = calendarView;
            FirstDayOfWeek = calendarView.FirstDayOfWeek;

            displayMonth = new DateTime(displayMonth.Year, displayMonth.Month, 1);
            DisplayMonth = displayMonth;

            if (AutoInitialize)
            {
                Initialize();
            }
        }