Source/Editors/DateTimeAdv/MonthCalendarColors.cs

(开头部分) 12KB

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

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

namespace DevComponents.Editors.DateTimeAdv
{
    /// <summary>
    /// Defines the MonthCalendar and SingleMonthCalendar colors for customization.
    /// </summary>
    [System.ComponentModel.ToolboxItem(false), System.ComponentModel.DesignTimeVisible(false), TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
    public class MonthCalendarColors
    {
        private void Refresh()
        {
            if (_Parent != null)
            {
                _Parent.NeedRecalcSize = true;
                _Parent.Refresh();
            }
        }

        private BaseItem _Parent;
        internal BaseItem Parent
        {
            get { return _Parent; }
            set
            {
                _Parent = value;
                _WeekOfYear.Parent = value;
                _Day.Parent = value;
                _Weekend.Parent = value;
                _TrailingDay.Parent = value;
                _Today.Parent = value;
                _TrailingWeekend.Parent = value;
                _DayLabel.Parent = value;
                _DayMarker.Parent = value;
                _MonthlyMarker.Parent = value;
                _AnnualMarker.Parent = value;
                _Selection.Parent = value;
            }
        }

        private DateAppearanceDescription _Today = new DateAppearanceDescription();
        /// <summary>
        /// Gets the appearance settings for the todays date.
        /// </summary>
        [NotifyParentPropertyAttribute(true), Description("Indicates appearance settings for the todays date."), DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public DateAppearanceDescription Today
        {
            get { return _Today; }
        }
        /// <summary>
        /// Resets property to its default value. Provided for Windows Forms designer support.
        /// </summary>
        [EditorBrowsable(EditorBrowsableState.Never)]
        public void ResetToday()
后面还有 217 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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