Пример #1
0
        public TaskMatchesListView(IntPtr hwndParent)
        {
            m_TaskIcons = new UIExtension.TaskIcon(hwndParent);

            m_ilItemHeight           = new ImageList();
            m_ilItemHeight.ImageSize = new Size(1, DPIScaling.Scale(17));             // minimum height

            m_LabelTip = new LabelTip(this);
        }
Пример #2
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();
        }