Source/Editors/DateTimeAdv/MonthCalendarItem.cs

(开头部分) 67KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

#if FRAMEWORK20
using System;
using System.Drawing;
using System.Text;
using DevComponents.DotNetBar;
using System.ComponentModel;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Globalization;

namespace DevComponents.Editors.DateTimeAdv
{
    public class MonthCalendarItem : CalendarBase
    {
        #region Private Variables
        private Size _Spacing = new Size(10, 8);
        private List<DateTime> _AnnuallyMarkedDates = new List<DateTime>();
        private List<DateTime> _MonthlyMarkedDates = new List<DateTime>();
        private List<DateTime> _MarkedDates = new List<DateTime>();
        private static string _BottomContainerName = "sysCalBottomContainer";
        private static string _TodayButtonName = "sysTodayButton";
        private static string _ClearButtonName = "sysClearSelectionButton";
        private ItemContainer _BottomContainer = null;
        private ButtonItem _TodayButton = null;
        private ButtonItem _ClearButton = null;
        #endregion

        #region Events
        /// <summary>
        /// Occurs when month displayed by the item has changed.
        /// </summary>
        public event EventHandler MonthChanged;

        /// <summary>
        /// Occurs before the month that is displayed is changed.
        /// </summary>
        public event EventHandler MonthChanging;


        /// <summary>
        /// Occurs when child label representing days is rendered and it allows you to override default rendering.
        /// </summary>
        public event DayPaintEventHandler PaintLabel;

        /// <summary>
        /// Occurs when mouse button is pressed over the day/week label inside of the calendar.
        /// </summary>
        [System.ComponentModel.Description("Occurs when mouse button is pressed over the day/week label inside of the calendar.")]
        public event System.Windows.Forms.MouseEventHandler LabelMouseDown;

        /// <summary>
        /// Occurs when mouse button is released over day/week label inside of the calendar.
        /// </summary>
        [System.ComponentModel.Description("Occurs when mouse button is released over day/week label inside of the calendar.")]
        public event System.Windows.Forms.MouseEventHandler LabelMouseUp;

        /// <summary>
        /// Occurs when mouse enters the day/week label inside of the calendar.
        /// </summary>
        [System.ComponentModel.Description("Occurs when mouse enters the day/week label inside of the calendar.")]
后面还有 1614 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。