Class LoginDialogArgs
LoginDialog Argument class that holds all needed information to display the login dialog.
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class LoginDialogArgs : DialogArgs
Constructors
View SourceLoginDialogArgs()
Initializes a new instance of the LoginDialogArgs class.
Declaration
public LoginDialogArgs()
LoginDialogArgs(String)
Initializes a new instance of the LoginDialogArgs class.
Declaration
public LoginDialogArgs(string loginInfoText)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | loginInfoText | The login info text. |
Properties
View SourceCancelButtonCaption
Gets or sets the cancel button caption, if null or empty, default text will be used.
Declaration
public string CancelButtonCaption { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The cancel button caption. |
CancelButtonTooltip
Gets or sets the cancel button tooltip, if null or empty, default text will be used.
Declaration
public string CancelButtonTooltip { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The cancel button tooltip. |
Image
Gets or sets the image for the dialog, if null, default text will be used.
Declaration
public object Image { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The image. |
IsLocked
Indicates that the application is locked
Declaration
public bool IsLocked { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
LoginButtonCaption
Gets or sets the login button caption, if null or empty, default text will be used.
Declaration
public string LoginButtonCaption { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The login button caption. |
LoginButtonTooltip
Gets or sets the login button tooltip, if null or empty, default text will be used.
Declaration
public string LoginButtonTooltip { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The login button tooltip. |
LoginDialogInfoText
Gets or sets the login dialog info text, if null or empty, default text will be used.
Declaration
public string LoginDialogInfoText { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The login dialog info text. |
OnCancel
The Action that is invoked when the user clicks the cancel button.
Declaration
public Action OnCancel { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Action |
OnLoginFailed
The Action that is invoked when the login fails.
Declaration
public Action OnLoginFailed { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Action |
OnLoginOK
The Action that is invoked when the user clicks the OK button.
Declaration
public Action<IPrincipal> OnLoginOK { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Action<System.Security.Principal.IPrincipal> |
Password
Gets or sets the password.
Declaration
public string Password { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The password. |
PasswordMinLen
Gets or sets a value indicating min length of the password.
Declaration
public int PasswordMinLen { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Responsibility
Defines the dialogs responsibility.
Declaration
public LoginDialogResponsibility Responsibility { get; set; }
Property Value
| Type | Description |
|---|---|
| Sartorius.SAF.Presentation.Controls.LoginDialog.LoginDialogResponsibility |
ShowCloseWhenLocked
Indicates the user can cancel when application is locked.
Declaration
public bool ShowCloseWhenLocked { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ShowInTaskbar
Gets or sets a value indicating whether the dialog is show in the taskbar.
Declaration
public bool? ShowInTaskbar { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
|
Remarks
If not set then the about dialog is not displayed in the taskbar (unless it has no owner).
UserName
Gets or sets the name of the user.
Declaration
public string UserName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The name of the user. |