Skip to content

Commit

Permalink
Corrected DesignerSerializationVisibility attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Nov 23, 2024
1 parent 72e0877 commit 6c9d4ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Common.WinForms/Controls/HintTextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected override void OnBackColorChanged(EventArgs e)

/// <inheritdoc/>
[AllowNull]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public override string Text
{
get => IsHintTextVisible ? "" : base.Text;
Expand Down
2 changes: 1 addition & 1 deletion src/Common.WinForms/Controls/TimeSpanControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public partial class TimeSpanControl : UserControl
/// <summary>
/// The time span currently represented by the control.
/// </summary>
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public TimeSpan Value
{
get => new((int)upDownDays.Value, (int)upDownHours.Value, (int)upDownMinutes.Value, (int)upDownSeconds.Value);
Expand Down

0 comments on commit 6c9d4ff

Please sign in to comment.