C# Class Longkong.SecureCredential.CredentialsDialog

Encapsulates dialog functionality from the Credential Management API.
Datei anzeigen Open project: Longkong/Pojjaman

Public Methods

Method Description
Confirm ( bool value ) : void

Confirmation action to be applied.

CredentialsDialog ( string target ) : System

Initializes a new instance of the T:SecureCredentialsLibrary.CredentialsDialog class with the specified target.

CredentialsDialog ( string target, string caption ) : System

Initializes a new instance of the T:SecureCredentialsLibrary.CredentialsDialog class with the specified target and caption.

CredentialsDialog ( string target, string caption, string message ) : System

Initializes a new instance of the T:SecureCredentialsLibrary.CredentialsDialog class with the specified target, caption and message.

CredentialsDialog ( string target, string caption, string message, Image banner ) : System

Initializes a new instance of the T:SecureCredentialsLibrary.CredentialsDialog class with the specified target, caption, message and banner.

Show ( ) : DialogResult

Shows the credentials dialog.

Show ( IWin32Window owner ) : DialogResult

Shows the credentials dialog with the specified owner.

Show ( IWin32Window owner, bool saveChecked ) : DialogResult

Shows the credentials dialog with the specified owner and save checkbox status.

Show ( IWin32Window owner, string name, string password ) : DialogResult

Shows the credentials dialog with the specified owner, name and password.

Show ( IWin32Window owner, string name, string password, bool saveChecked ) : DialogResult

Shows the credentials dialog with the specified owner, name, password and save checkbox status.

Show ( bool saveChecked ) : DialogResult

Shows the credentials dialog with the specified save checkbox status.

Show ( string name ) : DialogResult

Shows the credentials dialog with the specified name.

Show ( string name, string password ) : DialogResult

Shows the credentials dialog with the specified name and password.

Show ( string name, string password, bool saveChecked ) : DialogResult

Shows the credentials dialog with the specified name, password and save checkbox status.

Private Methods

Method Description
GetDialogResult ( CREDUI code ) : DialogResult

Returns a DialogResult from the specified code.

GetFlags ( ) : CREDUI.FLAGS

Returns the flags for dialog display options.

GetInfo ( IWin32Window owner ) : CREDUI.INFO

Returns the info structure for dialog display settings.

ShowDialog ( IWin32Window owner ) : DialogResult

Returns a DialogResult indicating the user action.

Sets the name, password and SaveChecked accessors to the state of the dialog as it was dismissed by the user.

Method Details

Confirm() public method

Confirmation action to be applied.
public Confirm ( bool value ) : void
value bool True if the credentials should be persisted.
return void

CredentialsDialog() public method

Initializes a new instance of the T:SecureCredentialsLibrary.CredentialsDialog class with the specified target.
public CredentialsDialog ( string target ) : System
target string The name of the target for the credentials, typically a server name.
return System

CredentialsDialog() public method

Initializes a new instance of the T:SecureCredentialsLibrary.CredentialsDialog class with the specified target and caption.
public CredentialsDialog ( string target, string caption ) : System
target string The name of the target for the credentials, typically a server name.
caption string The caption of the dialog (null will cause a system default title to be used).
return System

CredentialsDialog() public method

Initializes a new instance of the T:SecureCredentialsLibrary.CredentialsDialog class with the specified target, caption and message.
public CredentialsDialog ( string target, string caption, string message ) : System
target string The name of the target for the credentials, typically a server name.
caption string The caption of the dialog (null will cause a system default title to be used).
message string The message of the dialog (null will cause a system default message to be used).
return System

CredentialsDialog() public method

Initializes a new instance of the T:SecureCredentialsLibrary.CredentialsDialog class with the specified target, caption, message and banner.
public CredentialsDialog ( string target, string caption, string message, Image banner ) : System
target string The name of the target for the credentials, typically a server name.
caption string The caption of the dialog (null will cause a system default title to be used).
message string The message of the dialog (null will cause a system default message to be used).
banner Image The image to display on the dialog (null will cause a system default image to be used).
return System

Show() public method

Shows the credentials dialog.
public Show ( ) : DialogResult
return DialogResult

Show() public method

Shows the credentials dialog with the specified owner.
public Show ( IWin32Window owner ) : DialogResult
owner IWin32Window The System.Windows.Forms.IWin32Window the dialog will display in front of.
return DialogResult

Show() public method

Shows the credentials dialog with the specified owner and save checkbox status.
public Show ( IWin32Window owner, bool saveChecked ) : DialogResult
owner IWin32Window The System.Windows.Forms.IWin32Window the dialog will display in front of.
saveChecked bool True if the save checkbox is checked.
return DialogResult

Show() public method

Shows the credentials dialog with the specified owner, name and password.
public Show ( IWin32Window owner, string name, string password ) : DialogResult
owner IWin32Window The System.Windows.Forms.IWin32Window the dialog will display in front of.
name string The name for the credentials.
password string The password for the credentials.
return DialogResult

Show() public method

Shows the credentials dialog with the specified owner, name, password and save checkbox status.
public Show ( IWin32Window owner, string name, string password, bool saveChecked ) : DialogResult
owner IWin32Window The System.Windows.Forms.IWin32Window the dialog will display in front of.
name string The name for the credentials.
password string The password for the credentials.
saveChecked bool True if the save checkbox is checked.
return DialogResult

Show() public method

Shows the credentials dialog with the specified save checkbox status.
public Show ( bool saveChecked ) : DialogResult
saveChecked bool True if the save checkbox is checked.
return DialogResult

Show() public method

Shows the credentials dialog with the specified name.
public Show ( string name ) : DialogResult
name string The name for the credentials.
return DialogResult

Show() public method

Shows the credentials dialog with the specified name and password.
public Show ( string name, string password ) : DialogResult
name string The name for the credentials.
password string The password for the credentials.
return DialogResult

Show() public method

Shows the credentials dialog with the specified name, password and save checkbox status.
public Show ( string name, string password, bool saveChecked ) : DialogResult
name string The name for the credentials.
password string The password for the credentials.
saveChecked bool True if the save checkbox is checked.
return DialogResult