コード例 #1
0
 /// <summary>
 /// Applies all settings from this object to specified object.
 /// </summary>
 /// <param name="desc">Reference to object.</param>
 public void ApplyTo(DateAppearanceDescription desc)
 {
     desc.BackColor = this.BackColor;
     desc.BackColor2 = this.BackColor2;
     desc.BackColorGradientAngle = this.BackColorGradientAngle;
     desc.BorderColor = this.BorderColor;
     desc.IsBold = this.IsBold;
     desc.Selectable = this.Selectable;
     desc.TextColor = this.TextColor;
 }
コード例 #2
0
 public void ResetTrailingDay()
 {
     _TrailingDay = new DateAppearanceDescription();
     _TrailingDay.Parent = _Parent;
     this.Refresh();
 }
コード例 #3
0
 public void ResetSelection()
 {
     _Selection = new DateAppearanceDescription();
     _Selection.Parent = _Parent;
     this.Refresh();
 }
コード例 #4
0
 public void ResetDayLabel()
 {
     _DayLabel = new DateAppearanceDescription();
     _DayLabel.Parent = _Parent;
     this.Refresh();
 }
コード例 #5
0
 public void ResetTrailingWeekend()
 {
     _TrailingWeekend = new DateAppearanceDescription();
     _TrailingWeekend.Parent = _Parent;
     this.Refresh();
 }
コード例 #6
0
 public void ResetWeekOfYear()
 {
     _WeekOfYear = new DateAppearanceDescription();
     _WeekOfYear.Parent = _Parent;
     this.Refresh();
 }
コード例 #7
0
 private void ApplyMarker(DayLabel day, DateAppearanceDescription c)
 {
     day.BackgroundStyle.BackColor = c.BackColor;
     day.BackgroundStyle.BackColor2 = c.BackColor2;
     day.BackgroundStyle.BackColorGradientAngle = c.BackColorGradientAngle;
     if (!c.BorderColor.IsEmpty)
     {
         day.BackgroundStyle.Border = eStyleBorderType.Solid;
         day.BackgroundStyle.BorderColor = c.BorderColor;
         day.BackgroundStyle.BorderWidth = 1;
     }
     day.IsBold = c.IsBold;
     if (!c.TextColor.IsEmpty)
         day.TextColor = c.TextColor;
     day.Selectable = c.Selectable;
     if (!c.Selectable)
         day.TrackMouse = false;
 }