C# Class KeeAgent.ExtensionMethods

Datei anzeigen Open project: dlech/KeeAgent

Private Properties

Property Type Description
GetSshKey ISshKey
SetWindowPos bool

Public Methods

Method Description
AddTab ( this aForm, UserControl aPanel ) : void
ExpandEnvironmentVariables ( this filename ) : String

Expand environment variables in a filename. Also expandes ~/ to %HOME% environment variable.

GetDatabase ( this entry ) : KeePassLib.PwDatabase
GetFullPath ( this entry ) : string
GetKeeAgentSettings ( this aDatabase ) : KeeAgent.DatabaseSettings
GetKeeAgentSettings ( this entry ) : EntrySettings
GetSshKey ( this entry ) : ISshKey
GetSshKey ( this settings, ProtectedStringDictionary strings, ProtectedBinaryDictionary binaries, SprContext sprContext ) : ISshKey
ReadAllLines ( this stream, Encoding encoding ) : IEnumerable
ReplaceWithGlobalConfirmMessage ( this control ) : void

Replace a control with a label that indicates that the global confirm constraint option is enabled.

SetKeeAgentSettings ( this aDatabase, KeeAgent.DatabaseSettings aSettings ) : void
SetKeeAgentSettings ( this entry, EntrySettings settings ) : void
SetWindowPosBottom ( this form ) : void

Set window z order to the bottom.

Private Methods

Method Description
GetSshKey ( Func getPrivateKeyStream, Func getPublicKeyStream, string fallbackComment, KeyFormatter getPassphrase ) : ISshKey
SetWindowPos ( IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int Width, int Height, SetWindowPosFlags flags ) : bool

Method Details

AddTab() public static method

public static AddTab ( this aForm, UserControl aPanel ) : void
aForm this
aPanel System.Windows.Forms.UserControl
return void

ExpandEnvironmentVariables() public static method

Expand environment variables in a filename. Also expandes ~/ to %HOME% environment variable.
public static ExpandEnvironmentVariables ( this filename ) : String
filename this
return String

GetDatabase() public static method

public static GetDatabase ( this entry ) : KeePassLib.PwDatabase
entry this
return KeePassLib.PwDatabase

GetFullPath() public static method

public static GetFullPath ( this entry ) : string
entry this
return string

GetKeeAgentSettings() public static method

public static GetKeeAgentSettings ( this aDatabase ) : KeeAgent.DatabaseSettings
aDatabase this
return KeeAgent.DatabaseSettings

GetKeeAgentSettings() public static method

public static GetKeeAgentSettings ( this entry ) : EntrySettings
entry this
return EntrySettings

GetSshKey() public static method

public static GetSshKey ( this entry ) : ISshKey
entry this
return ISshKey

GetSshKey() public static method

public static GetSshKey ( this settings, ProtectedStringDictionary strings, ProtectedBinaryDictionary binaries, SprContext sprContext ) : ISshKey
settings this
strings ProtectedStringDictionary
binaries ProtectedBinaryDictionary
sprContext KeePass.Util.Spr.SprContext
return ISshKey

ReadAllLines() public static method

public static ReadAllLines ( this stream, Encoding encoding ) : IEnumerable
stream this
encoding System.Text.Encoding
return IEnumerable

ReplaceWithGlobalConfirmMessage() public static method

Replace a control with a label that indicates that the global confirm constraint option is enabled.
public static ReplaceWithGlobalConfirmMessage ( this control ) : void
control this
return void

SetKeeAgentSettings() public static method

public static SetKeeAgentSettings ( this aDatabase, KeeAgent.DatabaseSettings aSettings ) : void
aDatabase this
aSettings KeeAgent.DatabaseSettings
return void

SetKeeAgentSettings() public static method

public static SetKeeAgentSettings ( this entry, EntrySettings settings ) : void
entry this
settings EntrySettings
return void

SetWindowPosBottom() public static method

Set window z order to the bottom.
public static SetWindowPosBottom ( this form ) : void
form this
return void