Skip to content

Commit

Permalink
* Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
PWagner1 committed Dec 2, 2023
1 parent 17ea82d commit 0991baa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 30 deletions.
13 changes: 13 additions & 0 deletions Source/Krypton Components/Krypton.Toolkit/Values/ButtonValues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,19 @@ public bool ShowSplitOption

#endregion

#region UserAccountControlValues

/*
/// <summary>Gets the user account control values.</summary>
/// <value>The user account control values.</value>
[Category(@"Visuals")]
[Description(@"Button values")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public UserAccountControlShieldValues UserAccountControlValues { get; }
*/

#endregion

#region UAC Stuff

/// <summary>Shows the uac shield.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

namespace Krypton.Toolkit
{
public class UserAccountControlShieldValues : Storage, IContentValues
[TypeConverter(typeof(ExpandableObjectConverter))]
public class UserAccountControlShieldValues : NullContentValues
{
#region Instance Fields

Expand All @@ -21,18 +22,10 @@ public class UserAccountControlShieldValues : Storage, IContentValues

#endregion

public override bool IsDefault =>
(UseAsUACShieldButton == false) &&
(UseOSStyleImage == false) &&
(ShieldIconSize == UACShieldIconSize.ExtraSmall) &&
(CustomImageSize == Size.Empty);

#region Identity

public UserAccountControlShieldValues(NeedPaintHandler needPaint)
public UserAccountControlShieldValues()
{
NeedPaint = needPaint;

_useAsUACShieldButton = false;

_useOSStyleImage = true;
Expand All @@ -53,25 +46,5 @@ public UserAccountControlShieldValues(NeedPaintHandler needPaint)
public Size CustomImageSize { get => _customImageSize; set => _customImageSize = value; }

#endregion

public Image? GetImage(PaletteState state)
{
throw new NotImplementedException();
}

public Color GetImageTransparentColor(PaletteState state)
{
throw new NotImplementedException();
}

public string GetShortText()
{
throw new NotImplementedException();
}

public string GetLongText()
{
throw new NotImplementedException();
}
}
}

0 comments on commit 0991baa

Please sign in to comment.