コード例 #1
0
 public WeekDayElementStyle(Calendar Parent)
 {
     m_Parent          = Parent;
     m_BStyle          = new BorderStyle(this);
     m_BackgroundStyle = new BackgroundStyle(this);
     m_Font            = new Font("Tahoma", 9);
 }
 public ElementStyle(object Parent)
 {
     m_Parent          = Parent;
     m_BStyle          = new BorderStyle(this);
     m_BackgroundStyle = new BackgroundStyle(this);
     m_Font            = new Font("Tahoma", 9);
 }
コード例 #3
0
 public HeaderElementStyle(Calendar Parent)
 {
     m_Parent          = Parent;
     m_BStyle          = new BorderStyle(this);
     m_BackgroundStyle = new BackgroundStyle(this);
     m_Padding         = new MonthDaysPadding(this, 10, 6);
     m_Font            = new Font("Tahoma", 9);
 }
        private int m_iTextTransparency = 255; //no transparents

        public FooterElementStyle(Calendar Parent)
        {
            m_Parent          = Parent;
            m_Font            = new Font("Tahoma", 9);
            m_BorderStyle     = new BorderStyle(this);
            m_BackgroundStyle = new BackgroundStyle(this);
            m_Padding         = new Padding(20, 5, 20, 5);
        }
 public DateItem()
 {
     m_BackgroundStyle = new BackgroundStyle(null);
     m_BorderStyle     = new BorderStyle(null);
     m_Font            = new Font("Tahoma", 9);
     m_LastDate        = m_Date;
     m_Padding         = new Padding(2);
 }
        public MonthDaysElementStyle(Calendar Parent)
        {
            m_Parent                                       = Parent;
            m_BStyle                                       = new BorderStyle(this);
            m_BackgroundStyle                              = new BackgroundStyle(this);
            m_SelectedDay                                  = new ElementStyle(this);
            m_SelectedDay.ForeColor                        = Color.Black;
            m_SelectedDay.Background.StartColor            = Color.FromArgb(230, 222, 185);
            m_SelectedDay.Background.Style                 = EStyle.esColor;
            m_HoverStyle                                   = new HoverElementStyle(this);
            m_HoverStyle.Background.StartColor             = Color.Blue;
            m_HoverStyle.Background.TransparencyStartColor = 128;
            m_HoverStyle.Background.Style                  = EStyle.esColor;
            m_HoverStyle.Border.BorderColor                = Color.DarkBlue;
            m_HoverStyle.Border.Transparency               = 128;
            m_HoverStyle.Border.Visible                    = true;
            m_TrailingDays                                 = new ElementStyle(this);
            m_TrailingDays.ForeColor                       = Color.FromArgb(140, 140, 140);
            m_TrailingDays.Background.Style                = EStyle.esParent;

            m_Padding     = new Padding(2);
            m_Font        = new Font("Tahoma", 9);
            m_DaysPadding = new MonthDaysPadding(this, 2, 2);
        }
コード例 #7
0
ファイル: Hover.cs プロジェクト: keynesproject/MYP-LPS
 public HoverElementStyle(object Parent)
 {
     m_Parent          = Parent;
     m_BStyle          = new BorderStyle(this);
     m_BackgroundStyle = new BackgroundStyle(this);
 }