Inheritance: Calendar.AbstractRenderer
Exemple #1
0
        public TDLDayView(UIExtension.TaskIcon taskIcons, int minSlotHeight)
        {
            minHourLabelWidth      = DPIScaling.Scale(minHourLabelWidth);
            hourLabelIndent        = DPIScaling.Scale(hourLabelIndent);
            dayHeadersHeight       = DPIScaling.Scale(dayHeadersHeight);
            longAppointmentSpacing = DPIScaling.Scale(longAppointmentSpacing);
            dayGripWidth           = 1;   // to match app styling

            m_Renderer          = new TDLRenderer(Handle, taskIcons);
            m_Items             = new System.Collections.Generic.Dictionary <UInt32, CalendarItem>();
            m_UserMinSlotHeight = minSlotHeight;
            m_LabelTip          = new LabelTip(this);

            InitializeComponent();
        }
        public TDLDayView(UIExtension.TaskIcon taskIcons, int minSlotHeight)
        {
            hourLabelWidth         = DPIScaling.Scale(hourLabelWidth);
            hourLabelIndent        = DPIScaling.Scale(hourLabelIndent);
            dayHeadersHeight       = DPIScaling.Scale(dayHeadersHeight);
            appointmentGripWidth   = DPIScaling.Scale(appointmentGripWidth);
            headerBorder           = DPIScaling.Scale(headerBorder);
            longAppointmentSpacing = DPIScaling.Scale(longAppointmentSpacing);

            m_Renderer          = new TDLRenderer(Handle, taskIcons);
            m_Items             = new System.Collections.Generic.Dictionary <UInt32, CalendarItem>();
            m_UserMinSlotHeight = minSlotHeight;

            InitializeComponent();
            RefreshHScrollSize();
        }
        // PRIVATE ------------------------------------------------------------------------------
        private void InitializeComponent()
        {
            this.BackColor = System.Drawing.Color.White;
            this.m_Items = new System.Collections.Generic.Dictionary<UInt32, CalendarItem>();
            this.m_renderer = new TDLRenderer();

            CreateDayView();
        }