/// <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; }
public void ResetTrailingDay() { _TrailingDay = new DateAppearanceDescription(); _TrailingDay.Parent = _Parent; this.Refresh(); }
public void ResetSelection() { _Selection = new DateAppearanceDescription(); _Selection.Parent = _Parent; this.Refresh(); }
public void ResetDayLabel() { _DayLabel = new DateAppearanceDescription(); _DayLabel.Parent = _Parent; this.Refresh(); }
public void ResetTrailingWeekend() { _TrailingWeekend = new DateAppearanceDescription(); _TrailingWeekend.Parent = _Parent; this.Refresh(); }
public void ResetWeekOfYear() { _WeekOfYear = new DateAppearanceDescription(); _WeekOfYear.Parent = _Parent; this.Refresh(); }
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; }