using System.Drawing;
namespace Lithnet.CredentialProvider
{
///
/// Represents a control that provides the credential UI with the logo of this credential provider.
///
/// See for the image transparency behaviour of each credential tile version.
public class CredentialProviderLogoControl : BitmapControl
{
///
/// Creates a new control.
///
/// The unique key for this control.
public CredentialProviderLogoControl(string key) : this(key, null, null) { }
///
/// Creates a new control.
///
/// The unique key for this control.
/// The label associated with the control. This value is not displayed to the user.
public CredentialProviderLogoControl(string key, string label) : this(key, label, null) { }
///
/// Creates a new control.
///
/// The unique key for this control.
/// The label associated with the control.
/// The bitmap to use as the logo.
public CredentialProviderLogoControl(string key, string label, Bitmap bitmap) : base(key, label, true, bitmap)
{
this.State = FieldState.DisplayInDeselectedTile;
}
private CredentialProviderLogoControl(CredentialProviderLogoControl source) : base(source) { }
internal override ControlBase Clone()
{
return new CredentialProviderLogoControl(this);
}
}
}