From 6c9d4ff21d5e03c38dc2960bcbd8a2da8a941a12 Mon Sep 17 00:00:00 2001 From: Bastian Eicher Date: Sat, 23 Nov 2024 10:54:56 +0100 Subject: [PATCH] Corrected DesignerSerializationVisibility attributes --- src/Common.WinForms/Controls/HintTextBox.cs | 2 +- src/Common.WinForms/Controls/TimeSpanControl.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Common.WinForms/Controls/HintTextBox.cs b/src/Common.WinForms/Controls/HintTextBox.cs index 16ae0308..3c90fad1 100644 --- a/src/Common.WinForms/Controls/HintTextBox.cs +++ b/src/Common.WinForms/Controls/HintTextBox.cs @@ -99,7 +99,7 @@ protected override void OnBackColorChanged(EventArgs e) /// [AllowNull] - [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] + [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] public override string Text { get => IsHintTextVisible ? "" : base.Text; diff --git a/src/Common.WinForms/Controls/TimeSpanControl.cs b/src/Common.WinForms/Controls/TimeSpanControl.cs index f190118f..402c4635 100644 --- a/src/Common.WinForms/Controls/TimeSpanControl.cs +++ b/src/Common.WinForms/Controls/TimeSpanControl.cs @@ -11,7 +11,7 @@ public partial class TimeSpanControl : UserControl /// /// The time span currently represented by the control. /// - [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] + [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] public TimeSpan Value { get => new((int)upDownDays.Value, (int)upDownHours.Value, (int)upDownMinutes.Value, (int)upDownSeconds.Value);