Beispiel #1
0
            public FocusColors(MonthColors parent)
            {
                m_parent = parent;
                m_textColor = Color.Black;
                m_dateColor = Color.Black;
                m_backColor = Color.FromArgb(224, 232, 246);
                m_borderColor = Color.FromArgb(152, 180, 226);
				
            }
Beispiel #2
0
 public DayColors(MonthColors parent)
 {
     m_parent = parent;
     m_textColor = Color.Black;
     m_dateColor = Color.Black;
     m_backColor1 = Color.White;
     m_backColor2 = Color.White;
     m_borderColor = Color.Black;
     m_gradientMode = mcGradientMode.None;
 }
Beispiel #3
0
 public SelectedColors(MonthColors parent)
 {
     m_parent = parent;
     m_textColor = Color.Black;
     m_dateColor = Color.Black;
     m_backColor = Color.FromArgb(193, 210, 238);
     m_borderColor = Color.FromArgb(49, 106, 197);
  
 
 }
Beispiel #4
0
 public TrailingColors(MonthColors parent)
 {
     m_parent = parent;
     m_textColor = Color.LightGray;
     m_dateColor = Color.LightGray;
     m_backColor1 = Color.White;
     m_backColor2 = Color.White;
     m_gradientMode = mcGradientMode.None;
 }
Beispiel #5
0
 public WeekendColors(MonthColors parent)
 {
     m_parent = parent;
     m_textColor = Color.Black;
     m_dateColor = Color.Black;
     m_backColor1 = Color.White;
     m_backColor2 = Color.White;
     m_gradientMode = mcGradientMode.None;
     m_saturday = true;
     m_sunday = true;
 }
Beispiel #6
0
 public DisabledColors(MonthColors parent)
 {
     m_parent = parent;
     m_textColor = Color.LightGray;
     m_dateColor = Color.LightGray;
     m_backColor1 = Color.FromArgb(233, 233, 233);
     m_backColor2 = Color.White;
     m_gradientMode = mcGradientMode.None;
 }
Beispiel #7
0
		public Month(MonthCalendar calendar)
		{
			m_calendar = calendar;
			m_dateFont = new Font("Microsoft Sans Serif",(float)8.25);
			m_textFont = new Font("Microsoft Sans Serif",(float)8.25);

			m_dayInFocus = -1;
			m_selArea.Clear();
			
            m_formatTrailing = true;
			m_imageAlign = mcItemAlign.TopLeft;
			m_dateAlign = mcItemAlign.Center;
			m_textAlign = mcItemAlign.BottomLeft;
			m_imageClick = false;
			
			// we need 42 (7 * 6) days for display
			m_days = new Day[42];
			for (int i = 0;i<42;i++)
			{
				m_days[i] = new Day();
				m_days[i].Month = this;
				m_days[i].Calendar = m_calendar;
            }

			m_colors = new MonthColors(this); 
			m_borderStyles = new MonthBorderStyles(this); 
			m_padding = new MonthPadding(this);
            m_transparency = new TransparencyCollection(this);
        }