Skip to content

Commit

Permalink
Update KryptonCommandLinkButton.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
PWagner1 committed Dec 7, 2023
1 parent c294bd3 commit 9e22507
Showing 1 changed file with 7 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,7 @@ public ButtonStyle ButtonStyle
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public PaletteTriple StateDisabled { get; }

private bool ShouldSerializeStateDisabled()
{
return !StateDisabled.IsDefault;
}
private bool ShouldSerializeStateDisabled() => !StateDisabled.IsDefault;

/// <summary>
/// Gets access to the normal button appearance entries.
Expand All @@ -289,10 +286,7 @@ private bool ShouldSerializeStateDisabled()
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public PaletteTriple StateNormal { get; }

private bool ShouldSerializeStateNormal()
{
return !StateNormal.IsDefault;
}
private bool ShouldSerializeStateNormal() => !StateNormal.IsDefault;

/// <summary>
/// Gets access to the hot tracking button appearance entries.
Expand All @@ -302,10 +296,7 @@ private bool ShouldSerializeStateNormal()
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public PaletteTriple StateTracking { get; }

private bool ShouldSerializeStateTracking()
{
return !StateTracking.IsDefault;
}
private bool ShouldSerializeStateTracking() => !StateTracking.IsDefault;

/// <summary>
/// Gets access to the pressed button appearance entries.
Expand All @@ -315,10 +306,7 @@ private bool ShouldSerializeStateTracking()
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public PaletteTriple StatePressed { get; }

private bool ShouldSerializeStatePressed()
{
return !StatePressed.IsDefault;
}
private bool ShouldSerializeStatePressed() => !StatePressed.IsDefault;

/// <summary>
/// Gets access to the normal button appearance when default.
Expand All @@ -328,10 +316,7 @@ private bool ShouldSerializeStatePressed()
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public PaletteTripleRedirect OverrideDefault { get; }

private bool ShouldSerializeOverrideDefault()
{
return !OverrideDefault.IsDefault;
}
private bool ShouldSerializeOverrideDefault() => !OverrideDefault.IsDefault;

/// <summary>
/// Gets access to the button appearance when it has focus.
Expand All @@ -341,10 +326,7 @@ private bool ShouldSerializeOverrideDefault()
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public PaletteTripleRedirect OverrideFocus { get; }

private bool ShouldSerializeOverrideFocus()
{
return !OverrideFocus.IsDefault;
}
private bool ShouldSerializeOverrideFocus() => !OverrideFocus.IsDefault;

/// <summary>
/// Gets or sets the value returned to the parent form when the button is clicked.
Expand Down Expand Up @@ -453,7 +435,7 @@ public virtual void SetFixedState(PaletteState state)
{
if (state == PaletteState.NormalDefaultOverride)
{
// Setup the overrides correctly to match state
// Set up the overrides correctly to match state
_overrideFocus.Apply = true;
_overrideNormal.Apply = true;

Expand Down

0 comments on commit 9e22507

Please sign in to comment.