Skip to content

Commit

Permalink
Update CommandLinkImageValues.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
PWagner1 committed Dec 2, 2023
1 parent e1f602c commit 2fc3a34
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public bool DisplayUACShield
}
}

private bool ShouldSerializeDisplayUACShield() => !DisplayUACShield;

public void ResetDisplayUACShield() => DisplayUACShield = false;

/// <summary>Gets and sets the heading image transparent color.</summary>
[Localizable(true)]
[Category("Visuals")]
Expand Down Expand Up @@ -128,6 +132,10 @@ public UACShieldIconSize UACShieldIconSize
}
}

private bool ShouldSerializeUACShieldIconSize() => UACShieldIconSize != UACShieldIconSize.Small;

public void ResetUACShieldIconSize() => UACShieldIconSize = UACShieldIconSize.Small;

#endregion

#region Identity
Expand All @@ -138,17 +146,13 @@ public CommandLinkImageValues(NeedPaintHandler needPaint)
{
NeedPaint = needPaint;

_displayUACShield = false;

_uacShieldIconSize = UACShieldIconSize.Small;

//_image = DEFAULT_IMAGE;

//_transparencyKey = Color.Empty;
ResetDisplayUACShield();

ResetImage();

ResetImageTransparentColor();

ResetUACShieldIconSize();
}

#endregion
Expand Down

0 comments on commit 2fc3a34

Please sign in to comment.