C# Class KeePass.Forms.MainForm

Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: cappert/keepass2 Class Usage Examples

Private Properties

Свойство Type Description
ActivateNextDocumentEx void
AddEntriesToList void
AddOrRemoveTagsToFromSelectedEntries void
ApplyUICustomizations void
AskIfSynchronizeInstead DialogResult
AssignMenuShortcuts void
AutoAdjustMemProtSettings void
ChangeMasterKey bool
CleanUpEx void
CloseAllDocuments bool
CloseDocument void
CompleteConnectionInfo IOConnectionInfo
CompleteConnectionInfoUsingMru IOConnectionInfo
CopyMenuItemText void
CreateColorizedIcon bool
DeleteSelectedEntries void
DeleteSelectedGroup void
EditSelectedEntry void
EmptyRecycleBin void
EnsureAlwaysOnTopOpt void
EnsureRecycleBin void
EnsureVisibleSelected void
EntryListAddColumn void
EvAppendEntryField void
ExecuteBinaryOpen void
ExecuteEntryAutoType void
FixDuplicateUuids bool
GetAceColumn KeePass.App.Configuration.AceColumn
GetCurrentEntries PwGroup
GetEntryFieldEx string
GetEntryListSprContext KeePass.Util.Spr.SprContext
GetMainAppState MainAppState
GetStartMinimized bool
GetTabText void
GetTopEntry PwEntry
GuiFindEntry System.Windows.Forms.ListViewItem
GuiFindGroup System.Windows.Forms.TreeNode
HandleGroupExpandCollapse void
HandleHotKey void
HandleMainWindowKeyMessage bool
HandleMoveKeyMessage bool
InitializeComponent void
InsertToolStripItem System.Windows.Forms.ToolStripMenuItem
IocFromCommandLine IOConnectionInfo
IsCommandTypeInvokable bool
IsPrimaryControlFocused bool
ListContainsOnlyTans bool
MinimizeToTray void
MinimizeToTrayAtStartIfEnabled void
MoveOrCopySelectedEntries void
MoveSelectedEntries void
MoveSelectedGroup void
OdKpfBuildResult object
OdKpfConstruct System.Windows.Forms.Form
OnAddEntryTag void
OnCopyCustomString void
OnCtxEntryClipboardOpening void
OnCtxGroupListOpening void
OnCtxPwListOpening void
OnCtxTrayOpening void
OnCustomToolBarButtonClicked void
OnEditShowByTagOpening void
OnEntryAdd void
OnEntryBinaryOpen void
OnEntryClipCopy void
OnEntryClipPaste void
OnEntryColorCustom void
OnEntryColorLightBlue void
OnEntryColorLightGreen void
OnEntryColorLightRed void
OnEntryColorLightYellow void
OnEntryColorStandard void
OnEntryCopyPassword void
OnEntryCopyURL void
OnEntryCopyUserName void
OnEntryDelete void
OnEntryDuplicate void
OnEntryEdit void
OnEntryMassSetIcon void
OnEntryMoveOneDown void
OnEntryMoveOneUp void
OnEntryMoveToBottom void
OnEntryMoveToGroup void
OnEntryMoveToGroupOpening void
OnEntryMoveToTop void
OnEntryOpenUrl void
OnEntryPerformAutoType void
OnEntrySaveAttachments void
OnEntrySelectAll void
OnEntrySelectedAddTagOpening void
OnEntrySelectedExport void
OnEntrySelectedNewTag void
OnEntrySelectedPrint void
OnEntrySelectedRemoveTagOpening void
OnEntryUrlOpenInInternal void
OnEntryViewKeyDown void
OnEntryViewKeyUp void
OnEntryViewLinkClicked void
OnEntryViewsByTagOpening void
OnFileChangeMasterKey void
OnFileClose void
OnFileDbSettings void
OnFileExit void
OnFileExport void
OnFileImport void
OnFileLock void
OnFileNew void
OnFileOpen void
OnFileOpenUrl void
OnFilePrint void
OnFileSave void
OnFileSaveAll void
OnFileSaveAs void
OnFileSaveAsCopy void
OnFileSaveAsUrl void
OnFileSynchronize void
OnFileSynchronizeUrl void
OnFormActivated void
OnFormClosed void
OnFormClosing void
OnFormLoad void
OnFormLoadParallelAsync void
OnFormResize void
OnFormShown void
OnGroupsAdd void
OnGroupsAfterCollapse void
OnGroupsAfterExpand void
OnGroupsCollapse void
OnGroupsDelete void
OnGroupsDuplicate void
OnGroupsEdit void
OnGroupsEmpty void
OnGroupsExpand void
OnGroupsExport void
OnGroupsFind void
OnGroupsKeyDown void
OnGroupsKeyUp void
OnGroupsKeyUpPriv void
OnGroupsListClickNode void
OnGroupsListDragDrop void
OnGroupsListDragEnter void
OnGroupsListDragLeave void
OnGroupsListDragOver void
OnGroupsListItemDrag void
OnGroupsMoveOneDown void
OnGroupsMoveOneUp void
OnGroupsMoveToBottom void
OnGroupsMoveToTop void
OnGroupsPrint void
OnGroupsSort void
OnGroupsSortRec void
OnHelpAbout void
OnHelpCheckForUpdate void
OnHelpContents void
OnHelpDonate void
OnHelpHomepage void
OnHelpSelectSource void
OnMenuChangeLanguage void
OnMenuEditOpening void
OnPwListClick void
OnPwListColumnClick void
OnPwListColumnWidthChanged void
OnPwListFind void
OnPwListItemDrag void
OnPwListKeyDown void
OnPwListKeyUp void
OnPwListMouseDoubleClick void
OnPwListMouseDown void
OnPwListSelectedIndexChanged void
OnQuickFindKeyDown void
OnQuickFindKeyUp void
OnQuickFindSelectedIndexChanged void
OnRemoveEntryTag void
OnSessionLock void
OnShowAllEntries void
OnShowEntriesByTag void
OnSystemTrayClick void
OnSystemTrayDoubleClick void
OnSystemTrayMouseDown void
OnTabMainKeyDown void
OnTabMainKeyUp void
OnTabMainMouseClick void
OnTabMainSelectedIndexChanged void
OnTimerMainTick void
OnToolsDbMaintenance void
OnToolsDelDupEntries void
OnToolsDelEmptyGroups void
OnToolsDelUnusedIcons void
OnToolsGeneratePasswordList void
OnToolsOptions void
OnToolsPlugins void
OnToolsPwGenerator void
OnToolsShowExpired void
OnToolsTanWizard void
OnToolsTriggers void
OnToolsXmlRep void
OnTrayExit void
OnTrayGenPw void
OnTrayLock void
OnTrayOptions void
OnTrayTray void
OnViewAlwaysOnTop void
OnViewConfigColumns void
OnViewShowEntriesOfSubGroups void
OnViewShowEntryView void
OnViewShowToolBar void
OnViewTanIndicesClick void
OnViewTanSimpleListClick void
OnViewWindowsSideBySide void
OnViewWindowsStacked void
OpenDatabaseInternal PwDatabase
OpenDatabaseRestoreIfOpened bool
PerformDefaultAction void
PerformDefaultAttachmentAction void
PerformDefaultUrlAction void
PerformQuickFind void
PerformSelfTest bool
PostSavingEx void
PreSaveValidate bool
PreSavingEx void
PrepareLock bool
PrintGroup void
RecreateUITabs void
RecursiveAddGroup void
RedirectActivationPop void
RedirectActivationPush void
RememberKeySources void
RemoveEntriesFromList void
RemoveEntriesFromList void
RestoreWindowState void
SaveAllDocuments void
SaveWindowPositionAndSize void
SaveWindowState void
SelectEntries void
SelectFirstEntryIfNoneSelected void
SelectUITab void
SerializeMruList void
SetListEntry ListViewItem
SetListFont void
SetMainWindowLayout void
SetObjectsDeletedStatus void
SetSelectedEntryColor void
SetSelectedGroup void
SetTopVisibleEntry void
SetTopVisibleGroup void
ShowEntriesByTag void
ShowEntryDetails void
ShowEntryView void
ShowExpiredEntries void
ShowSearchResultsStatusMessage void
SortPasswordList void
SortSubGroups void
ToggleFieldAsterisks void
UpdateClipboardStatus void
UpdateColumnSortingIcons void
UpdateColumnsEx void
UpdateEntryList void
UpdateEntryMoveMenu void
UpdateGlobalLockTimeout void
UpdateGroupList void
UpdateImageLists void
UpdateTagsMenu void
UpdateTrayState void
UpdateUIEntryCtxState MainAppState
UpdateUIGroupCtxState MainAppState
UpdateUIState void
UpdateUIState void
UpdateUITabs void
UrlsToString string

Méthodes publiques

Méthode Description
AddCustomToolBarButton ( string strID, string strName, string strDesc ) : void
CreateShowWarningsLogger ( ) : KeePass.UI.ShowWarningsLogger

Create a new warnings logger object that logs directly into the main status bar until the first warning is shown (in that case a dialog is opened displaying the warning).

CreateStatusBarLogger ( ) : KeePass.UI.StatusBarLogger
EnsureVisibleEntry ( KeePassLib.PwUuid uuid ) : void
EnsureVisibleForegroundWindow ( bool bUntray, bool bRestoreWindow ) : void
ExecuteGlobalAutoType ( ) : void
GetSelectedEntries ( ) : PwEntry[]

Get all selected entries.

GetSelectedEntriesAsGroup ( ) : PwGroup
GetSelectedEntriesCount ( ) : uint
GetSelectedEntry ( bool bRequireSelected ) : PwEntry

Gets the focused or first selected entry.

GetSelectedEntry ( bool bRequireSelected, bool bGetLastSelectedEntry ) : PwEntry
GetSelectedGroup ( ) : PwGroup

Get the currently selected group. The selected TreeNode is automatically translated to a PwGroup.

IsAtLeastOneFileOpen ( ) : bool
IsFileLocked ( PwDocument ds ) : bool
IsTrayed ( ) : bool

Check if the main window is trayed (i.e. only the tray icon is visible).

LockAllDocuments ( ) : void
MainForm ( ) : System

Default constructor.

MakeDocumentActive ( PwDocument ds ) : void
NotifyUserActivity ( ) : void

This function resets the internal user-inactivity timer.

OnMruClear ( ) : void
OnMruExecute ( string strDisplayName, object oTag, ToolStripMenuItem tsmiParent ) : void
OpenDatabase ( IOConnectionInfo ioConnection, CompositeKey cmpKey, bool bOpenLocal ) : void

Open a database. This function opens the specified database and updates the user interface.

PerformExport ( PwGroup pgDataSource, bool bExportDeleted ) : void
ProcessAppMessage ( IntPtr wParam, IntPtr lParam ) : void
RefreshEntriesList ( ) : void

Refresh the entries list. All currently displayed entries are updated. If you made changes to the list that change the number of visible entries (like adding or removing an entry), you must use the UpdateEntryList function instead.

RemoveCustomToolBarButton ( string strID ) : void
ResetDefaultFocus ( Control cExplicit ) : void
SaveConfig ( ) : void

Save the current configuration. The configuration is saved using the cascading configuration files mechanism and the default paths are used.

SaveDatabase ( PwDatabase pdToSave, object sender ) : void
SaveDatabaseAs ( PwDatabase pdToSave, IOConnectionInfo iocTo, bool bOnline, object sender, bool bCopy ) : void
SetStatusEx ( string strStatusText ) : void

Set the main status bar text.

StartClipboardCountdown ( ) : void

Start the clipboard countdown (set the current tick count to the maximum value and decrease it each second -- at 0 the clipboard is cleared automatically). This function is asynchronous.

UIBlockAutoUnlock ( bool bBlock ) : void
UIBlockInteraction ( bool bBlock ) : void
UIBlockWindowStateAuto ( bool bBlock ) : void
UIFileSave ( bool bForceSave ) : bool
UIIsAutoUnlockBlocked ( ) : bool
UIIsInteractionBlocked ( ) : bool
UIIsWindowStateAutoBlocked ( ) : bool
UpdateLinkedMenuItems ( ) : void

Set the linked menu item's Enabled state to the state of their parents.

UpdateTrayIcon ( ) : void

Function to update the tray icon based on the current window state.

UpdateUI ( bool bRecreateTabBar, PwDocument dsSelect, bool bUpdateGroupList, PwGroup pgSelect, bool bUpdateEntryList, PwGroup pgEntrySource, bool bSetModified ) : void
UpdateUI ( bool bRecreateTabBar, PwDocument dsSelect, bool bUpdateGroupList, PwGroup pgSelect, bool bUpdateEntryList, PwGroup pgEntrySource, bool bSetModified, Control cOptFocus ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Verwendete Ressourcen bereinigen.

ProcessCmdKey ( Message &msg, Keys keyData ) : bool
SetVisibleCore ( bool value ) : void
WndProc ( Message &m ) : void

Private Methods

Méthode Description
ActivateNextDocumentEx ( int iDir ) : void
AddEntriesToList ( PwObjectList vEntries ) : void
AddOrRemoveTagsToFromSelectedEntries ( string strTags, bool bAdd ) : void
ApplyUICustomizations ( ) : void
AskIfSynchronizeInstead ( IOConnectionInfo ioc ) : DialogResult
AssignMenuShortcuts ( ) : void
AutoAdjustMemProtSettings ( KeePassLib.PwDatabase pd, SearchParameters sp ) : void
ChangeMasterKey ( KeePassLib.PwDatabase pdOf ) : bool
CleanUpEx ( ) : void
CloseAllDocuments ( bool bExiting ) : bool
CloseDocument ( PwDocument dsToClose, bool bLocking, bool bExiting, bool bUpdateUI ) : void
CompleteConnectionInfo ( IOConnectionInfo ioc, bool bSave, bool bCanRememberCred, bool bTestConnection, bool bForceShow ) : IOConnectionInfo
CompleteConnectionInfoUsingMru ( IOConnectionInfo ioc ) : IOConnectionInfo
CopyMenuItemText ( ToolStripMenuItem tsmiTarget, ToolStripMenuItem tsmiCopyFrom, string strTextOpt ) : void
CreateColorizedIcon ( Icon icoBase, int qSize, Icon>.KeyValuePair &kvpStore, Icon &icoAssignable, Icon &icoDisposable ) : bool
DeleteSelectedEntries ( ) : void
DeleteSelectedGroup ( ) : void
EditSelectedEntry ( bool bSwitchToHistoryTab ) : void
EmptyRecycleBin ( ) : void
EnsureAlwaysOnTopOpt ( ) : void
EnsureRecycleBin ( PwGroup &pgRecycleBin, KeePassLib.PwDatabase pdContext, bool &bGroupListUpdateRequired ) : void
EnsureVisibleSelected ( bool bLastMatchingEntry ) : void
EntryListAddColumn ( AceColumnType t, int nWidth, bool bHide ) : void
EvAppendEntryField ( RichTextBuilder rb, string strItemSeparator, string strName, string strRawValue, PwEntry peSprCompile ) : void
ExecuteBinaryOpen ( PwEntry pe, string strBinName ) : void
ExecuteEntryAutoType ( ) : void
FixDuplicateUuids ( KeePassLib.PwDatabase pd, IOConnectionInfo ioc ) : bool
GetAceColumn ( int nColID ) : AceColumn
GetCurrentEntries ( ) : PwGroup
GetEntryFieldEx ( PwEntry pe, int iColumnID, bool bFormatForDisplay, bool &bRequestAsync ) : string
GetEntryListSprContext ( PwEntry pe, KeePassLib.PwDatabase pd ) : SprContext
GetMainAppState ( ) : MainAppState
GetStartMinimized ( ) : bool
GetTabText ( PwDocument dsInfo, string &strName, string &strTip ) : void
GetTopEntry ( ) : PwEntry
GuiFindEntry ( KeePassLib.PwUuid puSearch ) : System.Windows.Forms.ListViewItem
GuiFindGroup ( KeePassLib.PwUuid puSearch, TreeNode tnContainer ) : TreeNode
HandleGroupExpandCollapse ( TreeViewEventArgs e, bool bExpand ) : void
HandleHotKey ( int wParam ) : void
HandleMainWindowKeyMessage ( KeyEventArgs e, bool bDown ) : bool
HandleMoveKeyMessage ( KeyEventArgs e, bool bDown, bool bEntry ) : bool
InitializeComponent ( ) : void

Erforderliche Methode für die Designerunterstützung. Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.

InsertToolStripItem ( ToolStripMenuItem tsContainer, ToolStripMenuItem tsTemplate, EventHandler ev, bool bPermanentlyLinkToTemplate ) : ToolStripMenuItem
IocFromCommandLine ( ) : IOConnectionInfo
IsCommandTypeInvokable ( MainAppState sContext, AppCommandType t ) : bool
IsPrimaryControlFocused ( ) : bool
ListContainsOnlyTans ( PwObjectList vEntries ) : bool
MinimizeToTray ( bool bMinimize ) : void
MinimizeToTrayAtStartIfEnabled ( bool bFormLoading ) : void
MoveOrCopySelectedEntries ( PwGroup pgTo, DragDropEffects e ) : void
MoveSelectedEntries ( int iMove ) : void

Move selected entries.

MoveSelectedGroup ( int iMove ) : void
OdKpfBuildResult ( Form f ) : object
OdKpfConstruct ( object objParam ) : Form
OnAddEntryTag ( object sender, DynamicMenuEventArgs e ) : void
OnCopyCustomString ( object sender, DynamicMenuEventArgs e ) : void
OnCtxEntryClipboardOpening ( object sender, EventArgs e ) : void
OnCtxGroupListOpening ( object sender, System.CancelEventArgs e ) : void
OnCtxPwListOpening ( object sender, System.CancelEventArgs e ) : void
OnCtxTrayOpening ( object sender, System.CancelEventArgs e ) : void
OnCustomToolBarButtonClicked ( object sender, EventArgs e ) : void
OnEditShowByTagOpening ( object sender, EventArgs e ) : void
OnEntryAdd ( object sender, EventArgs e ) : void
OnEntryBinaryOpen ( object sender, DynamicMenuEventArgs e ) : void
OnEntryClipCopy ( object sender, EventArgs e ) : void
OnEntryClipPaste ( object sender, EventArgs e ) : void
OnEntryColorCustom ( object sender, EventArgs e ) : void
OnEntryColorLightBlue ( object sender, EventArgs e ) : void
OnEntryColorLightGreen ( object sender, EventArgs e ) : void
OnEntryColorLightRed ( object sender, EventArgs e ) : void
OnEntryColorLightYellow ( object sender, EventArgs e ) : void
OnEntryColorStandard ( object sender, EventArgs e ) : void
OnEntryCopyPassword ( object sender, EventArgs e ) : void
OnEntryCopyURL ( object sender, EventArgs e ) : void
OnEntryCopyUserName ( object sender, EventArgs e ) : void
OnEntryDelete ( object sender, EventArgs e ) : void
OnEntryDuplicate ( object sender, EventArgs e ) : void
OnEntryEdit ( object sender, EventArgs e ) : void
OnEntryMassSetIcon ( object sender, EventArgs e ) : void
OnEntryMoveOneDown ( object sender, EventArgs e ) : void
OnEntryMoveOneUp ( object sender, EventArgs e ) : void
OnEntryMoveToBottom ( object sender, EventArgs e ) : void
OnEntryMoveToGroup ( object sender, DynamicMenuEventArgs e ) : void
OnEntryMoveToGroupOpening ( object sender, EventArgs e ) : void
OnEntryMoveToTop ( object sender, EventArgs e ) : void
OnEntryOpenUrl ( object sender, EventArgs e ) : void
OnEntryPerformAutoType ( object sender, EventArgs e ) : void
OnEntrySaveAttachments ( object sender, EventArgs e ) : void
OnEntrySelectAll ( object sender, EventArgs e ) : void
OnEntrySelectedAddTagOpening ( object sender, EventArgs e ) : void
OnEntrySelectedExport ( object sender, EventArgs e ) : void
OnEntrySelectedNewTag ( object sender, EventArgs e ) : void
OnEntrySelectedPrint ( object sender, EventArgs e ) : void
OnEntrySelectedRemoveTagOpening ( object sender, EventArgs e ) : void
OnEntryUrlOpenInInternal ( object sender, EventArgs e ) : void
OnEntryViewKeyDown ( object sender, KeyEventArgs e ) : void
OnEntryViewKeyUp ( object sender, KeyEventArgs e ) : void
OnEntryViewLinkClicked ( object sender, LinkClickedEventArgs e ) : void
OnEntryViewsByTagOpening ( object sender, EventArgs e ) : void
OnFileChangeMasterKey ( object sender, EventArgs e ) : void
OnFileClose ( object sender, EventArgs e ) : void
OnFileDbSettings ( object sender, EventArgs e ) : void
OnFileExit ( object sender, EventArgs e ) : void
OnFileExport ( object sender, EventArgs e ) : void
OnFileImport ( object sender, EventArgs e ) : void
OnFileLock ( object sender, EventArgs e ) : void
OnFileNew ( object sender, EventArgs e ) : void
OnFileOpen ( object sender, EventArgs e ) : void
OnFileOpenUrl ( object sender, EventArgs e ) : void
OnFilePrint ( object sender, EventArgs e ) : void
OnFileSave ( object sender, EventArgs e ) : void
OnFileSaveAll ( object sender, EventArgs e ) : void
OnFileSaveAs ( object sender, EventArgs e ) : void
OnFileSaveAsCopy ( object sender, EventArgs e ) : void
OnFileSaveAsUrl ( object sender, EventArgs e ) : void
OnFileSynchronize ( object sender, EventArgs e ) : void
OnFileSynchronizeUrl ( object sender, EventArgs e ) : void
OnFormActivated ( object sender, EventArgs e ) : void
OnFormClosed ( object sender, FormClosedEventArgs e ) : void
OnFormClosing ( object sender, FormClosingEventArgs e ) : void
OnFormLoad ( object sender, EventArgs e ) : void
OnFormLoadParallelAsync ( object stateInfo ) : void
OnFormResize ( object sender, EventArgs e ) : void
OnFormShown ( object sender, EventArgs e ) : void
OnGroupsAdd ( object sender, EventArgs e ) : void
OnGroupsAfterCollapse ( object sender, TreeViewEventArgs e ) : void
OnGroupsAfterExpand ( object sender, TreeViewEventArgs e ) : void
OnGroupsCollapse ( object sender, EventArgs e ) : void
OnGroupsDelete ( object sender, EventArgs e ) : void
OnGroupsDuplicate ( object sender, EventArgs e ) : void
OnGroupsEdit ( object sender, EventArgs e ) : void
OnGroupsEmpty ( object sender, EventArgs e ) : void
OnGroupsExpand ( object sender, EventArgs e ) : void
OnGroupsExport ( object sender, EventArgs e ) : void
OnGroupsFind ( object sender, EventArgs e ) : void
OnGroupsKeyDown ( object sender, KeyEventArgs e ) : void
OnGroupsKeyUp ( object sender, KeyEventArgs e ) : void
OnGroupsKeyUpPriv ( object sender, KeyEventArgs e ) : void
OnGroupsListClickNode ( object sender, TreeNodeMouseClickEventArgs e ) : void
OnGroupsListDragDrop ( object sender, DragEventArgs e ) : void
OnGroupsListDragEnter ( object sender, DragEventArgs e ) : void
OnGroupsListDragLeave ( object sender, EventArgs e ) : void
OnGroupsListDragOver ( object sender, DragEventArgs e ) : void
OnGroupsListItemDrag ( object sender, ItemDragEventArgs e ) : void
OnGroupsMoveOneDown ( object sender, EventArgs e ) : void
OnGroupsMoveOneUp ( object sender, EventArgs e ) : void
OnGroupsMoveToBottom ( object sender, EventArgs e ) : void
OnGroupsMoveToTop ( object sender, EventArgs e ) : void
OnGroupsPrint ( object sender, EventArgs e ) : void
OnGroupsSort ( object sender, EventArgs e ) : void
OnGroupsSortRec ( object sender, EventArgs e ) : void
OnHelpAbout ( object sender, EventArgs e ) : void
OnHelpCheckForUpdate ( object sender, EventArgs e ) : void
OnHelpContents ( object sender, EventArgs e ) : void
OnHelpDonate ( object sender, EventArgs e ) : void
OnHelpHomepage ( object sender, EventArgs e ) : void
OnHelpSelectSource ( object sender, EventArgs e ) : void
OnMenuChangeLanguage ( object sender, EventArgs e ) : void
OnMenuEditOpening ( object sender, EventArgs e ) : void
OnPwListClick ( object sender, EventArgs e ) : void
OnPwListColumnClick ( object sender, ColumnClickEventArgs e ) : void
OnPwListColumnWidthChanged ( object sender, ColumnWidthChangedEventArgs e ) : void
OnPwListFind ( object sender, EventArgs e ) : void
OnPwListItemDrag ( object sender, ItemDragEventArgs e ) : void
OnPwListKeyDown ( object sender, KeyEventArgs e ) : void
OnPwListKeyUp ( object sender, KeyEventArgs e ) : void
OnPwListMouseDoubleClick ( object sender, MouseEventArgs e ) : void
OnPwListMouseDown ( object sender, MouseEventArgs e ) : void
OnPwListSelectedIndexChanged ( object sender, EventArgs e ) : void
OnQuickFindKeyDown ( object sender, KeyEventArgs e ) : void
OnQuickFindKeyUp ( object sender, KeyEventArgs e ) : void
OnQuickFindSelectedIndexChanged ( object sender, EventArgs e ) : void
OnRemoveEntryTag ( object sender, DynamicMenuEventArgs e ) : void
OnSessionLock ( object sender, SessionLockEventArgs e ) : void
OnShowAllEntries ( object sender, EventArgs e ) : void
OnShowEntriesByTag ( object sender, DynamicMenuEventArgs e ) : void
OnSystemTrayClick ( object sender, EventArgs e ) : void
OnSystemTrayDoubleClick ( object sender, EventArgs e ) : void
OnSystemTrayMouseDown ( object sender, MouseEventArgs e ) : void
OnTabMainKeyDown ( object sender, KeyEventArgs e ) : void
OnTabMainKeyUp ( object sender, KeyEventArgs e ) : void
OnTabMainMouseClick ( object sender, MouseEventArgs e ) : void
OnTabMainSelectedIndexChanged ( object sender, EventArgs e ) : void
OnTimerMainTick ( object sender, EventArgs e ) : void
OnToolsDbMaintenance ( object sender, EventArgs e ) : void
OnToolsDelDupEntries ( object sender, EventArgs e ) : void
OnToolsDelEmptyGroups ( object sender, EventArgs e ) : void
OnToolsDelUnusedIcons ( object sender, EventArgs e ) : void
OnToolsGeneratePasswordList ( object sender, EventArgs e ) : void
OnToolsOptions ( object sender, EventArgs e ) : void
OnToolsPlugins ( object sender, EventArgs e ) : void
OnToolsPwGenerator ( object sender, EventArgs e ) : void
OnToolsShowExpired ( object sender, EventArgs e ) : void
OnToolsTanWizard ( object sender, EventArgs e ) : void
OnToolsTriggers ( object sender, EventArgs e ) : void
OnToolsXmlRep ( object sender, EventArgs e ) : void
OnTrayExit ( object sender, EventArgs e ) : void
OnTrayGenPw ( object sender, EventArgs e ) : void
OnTrayLock ( object sender, EventArgs e ) : void
OnTrayOptions ( object sender, EventArgs e ) : void
OnTrayTray ( object sender, EventArgs e ) : void
OnViewAlwaysOnTop ( object sender, EventArgs e ) : void
OnViewConfigColumns ( object sender, EventArgs e ) : void
OnViewShowEntriesOfSubGroups ( object sender, EventArgs e ) : void
OnViewShowEntryView ( object sender, EventArgs e ) : void
OnViewShowToolBar ( object sender, EventArgs e ) : void
OnViewTanIndicesClick ( object sender, EventArgs e ) : void
OnViewTanSimpleListClick ( object sender, EventArgs e ) : void
OnViewWindowsSideBySide ( object sender, EventArgs e ) : void
OnViewWindowsStacked ( object sender, EventArgs e ) : void
OpenDatabaseInternal ( IOConnectionInfo ioc, CompositeKey cmpKey, bool &bAbort ) : PwDatabase
OpenDatabaseRestoreIfOpened ( IOConnectionInfo ioc ) : bool
PerformDefaultAction ( object sender, EventArgs e, PwEntry pe, int colID ) : void
PerformDefaultAttachmentAction ( ) : void
PerformDefaultUrlAction ( PwEntry vOptEntries, bool bForceOpen ) : void
PerformQuickFind ( string strSearch, string strGroupName, bool bForceShowExpired, bool bRespectEntrySearchingDisabled ) : void

Do a quick find. All entries of the currently opened database are searched for a string and the results are automatically displayed in the main window.

PerformSelfTest ( ) : bool
PostSavingEx ( bool bPrimary, PwDatabase pwDatabase, IOConnectionInfo ioc, IStatusLogger sl ) : void
PreSaveValidate ( PwDatabase pd ) : bool
PreSavingEx ( PwDatabase pd, IOConnectionInfo ioc ) : void
PrepareLock ( ) : bool
PrintGroup ( PwGroup pg ) : void
RecreateUITabs ( ) : void
RecursiveAddGroup ( TreeNode tnParent, PwGroup pgContainer, PwGroup pgFind, TreeNode &tnFound ) : void
RedirectActivationPop ( ) : void
RedirectActivationPush ( Form formTarget ) : void
RememberKeySources ( PwDatabase pwDb ) : void
RemoveEntriesFromList ( List lEntries, bool bLockUIUpdate ) : void
RemoveEntriesFromList ( PwEntry vEntries, bool bLockUIUpdate ) : void
RestoreWindowState ( PwDatabase pd ) : void
SaveAllDocuments ( ) : void
SaveWindowPositionAndSize ( ) : void
SaveWindowState ( ) : void
SelectEntries ( PwObjectList lEntries, bool bDeselectOthers, bool bFocusFirst ) : void
SelectFirstEntryIfNoneSelected ( ) : void
SelectUITab ( ) : void
SerializeMruList ( bool bStore ) : void
SetListEntry ( PwEntry pe, ListViewItem lviTarget ) : ListViewItem

Create or set an entry list view item.

SetListFont ( AceFont font ) : void
SetMainWindowLayout ( bool bSideBySide ) : void
SetObjectsDeletedStatus ( uint uDeleted, bool bDbMntnc ) : void
SetSelectedEntryColor ( Color clrBack ) : void
SetSelectedGroup ( PwGroup pg, bool bEnsureVisible ) : void
SetTopVisibleEntry ( PwUuid uuidEntry ) : void
SetTopVisibleGroup ( PwUuid uuidGroup ) : void
ShowEntriesByTag ( string strTag ) : void
ShowEntryDetails ( PwEntry pe ) : void
ShowEntryView ( bool bShow ) : void
ShowExpiredEntries ( bool bOnlyIfExists, bool bShowExpired, bool bShowSoonToExpire ) : void
ShowSearchResultsStatusMessage ( PwGroup pgSearchSkippedRoot ) : void
SortPasswordList ( bool bEnableSorting, int nColumn, SortOrder soForce, bool bUpdateEntryList ) : void
SortSubGroups ( bool bRecursive ) : void
ToggleFieldAsterisks ( AceColumnType colType ) : void
UpdateClipboardStatus ( ) : void
UpdateColumnSortingIcons ( ) : void
UpdateColumnsEx ( bool bGuiToInternal ) : void
UpdateEntryList ( PwGroup pgSelected, bool bOnlyUpdateCurrentlyShown ) : void

Update the entries list. This function completely rebuilds the entries list. You must call this function after you've made any changes to the entries of the currently selected group. Note that if you only made small changes (like editing an existing entry), the RefreshEntriesList function could be a better choice, as it only updates currently listed items and doesn't rebuild the whole list as UpdateEntryList.

UpdateEntryMoveMenu ( bool bDummyOnly ) : void
UpdateGlobalLockTimeout ( DateTime utcNow ) : void
UpdateGroupList ( PwGroup pgNewSelected ) : void

Update the group list. This function completely rebuilds the groups view. You must call this function after you made any changes to the groups structure of the currently opened database.

UpdateImageLists ( bool bForce ) : void
UpdateTagsMenu ( DynamicMenu dm, bool bWithSeparator, bool bPrefixTag, TagsMenuMode tmm ) : void
UpdateTrayState ( ) : void
UpdateUIEntryCtxState ( MainAppState stOpt ) : MainAppState
UpdateUIGroupCtxState ( MainAppState stOpt ) : MainAppState
UpdateUIState ( bool bSetModified ) : void

Update the UI state, i.e. enable/disable menu items depending on the state of the database (open, closed, locked, modified) and the selected items in the groups and entries list. You must call this function after all state-changing operations. For example, if you add a new entry the state needs to be updated (as the database has been modified) and you must call this function.

UpdateUIState ( bool bSetModified, Control cOptFocus ) : void
UpdateUITabs ( ) : void
UrlsToString ( PwEntry vEntries, bool bActive ) : string

Method Details

AddCustomToolBarButton() public méthode

public AddCustomToolBarButton ( string strID, string strName, string strDesc ) : void
strID string
strName string
strDesc string
Résultat void

CreateShowWarningsLogger() public méthode

Create a new warnings logger object that logs directly into the main status bar until the first warning is shown (in that case a dialog is opened displaying the warning).
public CreateShowWarningsLogger ( ) : KeePass.UI.ShowWarningsLogger
Résultat KeePass.UI.ShowWarningsLogger

CreateStatusBarLogger() public méthode

public CreateStatusBarLogger ( ) : KeePass.UI.StatusBarLogger
Résultat KeePass.UI.StatusBarLogger

Dispose() protected méthode

Verwendete Ressourcen bereinigen.
protected Dispose ( bool disposing ) : void
disposing bool True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.
Résultat void

EnsureVisibleEntry() public méthode

public EnsureVisibleEntry ( KeePassLib.PwUuid uuid ) : void
uuid KeePassLib.PwUuid
Résultat void

EnsureVisibleForegroundWindow() public méthode

public EnsureVisibleForegroundWindow ( bool bUntray, bool bRestoreWindow ) : void
bUntray bool
bRestoreWindow bool
Résultat void

ExecuteGlobalAutoType() public méthode

public ExecuteGlobalAutoType ( ) : void
Résultat void

GetSelectedEntries() public méthode

Get all selected entries.
public GetSelectedEntries ( ) : PwEntry[]
Résultat PwEntry[]

GetSelectedEntriesAsGroup() public méthode

public GetSelectedEntriesAsGroup ( ) : PwGroup
Résultat PwGroup

GetSelectedEntriesCount() public méthode

public GetSelectedEntriesCount ( ) : uint
Résultat uint

GetSelectedEntry() public méthode

Gets the focused or first selected entry.
public GetSelectedEntry ( bool bRequireSelected ) : PwEntry
bRequireSelected bool
Résultat PwEntry

GetSelectedEntry() public méthode

public GetSelectedEntry ( bool bRequireSelected, bool bGetLastSelectedEntry ) : PwEntry
bRequireSelected bool
bGetLastSelectedEntry bool
Résultat PwEntry

GetSelectedGroup() public méthode

Get the currently selected group. The selected TreeNode is automatically translated to a PwGroup.
public GetSelectedGroup ( ) : PwGroup
Résultat PwGroup

IsAtLeastOneFileOpen() public méthode

public IsAtLeastOneFileOpen ( ) : bool
Résultat bool

IsFileLocked() public méthode

public IsFileLocked ( PwDocument ds ) : bool
ds KeePass.UI.PwDocument
Résultat bool

IsTrayed() public méthode

Check if the main window is trayed (i.e. only the tray icon is visible).
public IsTrayed ( ) : bool
Résultat bool

LockAllDocuments() public méthode

public LockAllDocuments ( ) : void
Résultat void

MainForm() public méthode

Default constructor.
public MainForm ( ) : System
Résultat System

MakeDocumentActive() public méthode

public MakeDocumentActive ( PwDocument ds ) : void
ds KeePass.UI.PwDocument
Résultat void

NotifyUserActivity() public méthode

This function resets the internal user-inactivity timer.
public NotifyUserActivity ( ) : void
Résultat void

OnMruClear() public méthode

public OnMruClear ( ) : void
Résultat void

OnMruExecute() public méthode

public OnMruExecute ( string strDisplayName, object oTag, ToolStripMenuItem tsmiParent ) : void
strDisplayName string
oTag object
tsmiParent ToolStripMenuItem
Résultat void

OpenDatabase() public méthode

Open a database. This function opens the specified database and updates the user interface.
public OpenDatabase ( IOConnectionInfo ioConnection, CompositeKey cmpKey, bool bOpenLocal ) : void
ioConnection IOConnectionInfo
cmpKey CompositeKey
bOpenLocal bool
Résultat void

PerformExport() public méthode

public PerformExport ( PwGroup pgDataSource, bool bExportDeleted ) : void
pgDataSource PwGroup
bExportDeleted bool
Résultat void

ProcessAppMessage() public méthode

public ProcessAppMessage ( IntPtr wParam, IntPtr lParam ) : void
wParam IntPtr
lParam IntPtr
Résultat void

ProcessCmdKey() protected méthode

protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg Message
keyData Keys
Résultat bool

RefreshEntriesList() public méthode

Refresh the entries list. All currently displayed entries are updated. If you made changes to the list that change the number of visible entries (like adding or removing an entry), you must use the UpdateEntryList function instead.
public RefreshEntriesList ( ) : void
Résultat void

RemoveCustomToolBarButton() public méthode

public RemoveCustomToolBarButton ( string strID ) : void
strID string
Résultat void

ResetDefaultFocus() public méthode

public ResetDefaultFocus ( Control cExplicit ) : void
cExplicit Control
Résultat void

SaveConfig() public méthode

Save the current configuration. The configuration is saved using the cascading configuration files mechanism and the default paths are used.
public SaveConfig ( ) : void
Résultat void

SaveDatabase() public méthode

public SaveDatabase ( PwDatabase pdToSave, object sender ) : void
pdToSave PwDatabase
sender object
Résultat void

SaveDatabaseAs() public méthode

public SaveDatabaseAs ( PwDatabase pdToSave, IOConnectionInfo iocTo, bool bOnline, object sender, bool bCopy ) : void
pdToSave PwDatabase
iocTo IOConnectionInfo
bOnline bool
sender object
bCopy bool
Résultat void

SetStatusEx() public méthode

Set the main status bar text.
public SetStatusEx ( string strStatusText ) : void
strStatusText string New status bar text.
Résultat void

SetVisibleCore() protected méthode

protected SetVisibleCore ( bool value ) : void
value bool
Résultat void

StartClipboardCountdown() public méthode

Start the clipboard countdown (set the current tick count to the maximum value and decrease it each second -- at 0 the clipboard is cleared automatically). This function is asynchronous.
public StartClipboardCountdown ( ) : void
Résultat void

UIBlockAutoUnlock() public méthode

public UIBlockAutoUnlock ( bool bBlock ) : void
bBlock bool
Résultat void

UIBlockInteraction() public méthode

public UIBlockInteraction ( bool bBlock ) : void
bBlock bool
Résultat void

UIBlockWindowStateAuto() public méthode

public UIBlockWindowStateAuto ( bool bBlock ) : void
bBlock bool
Résultat void

UIFileSave() public méthode

public UIFileSave ( bool bForceSave ) : bool
bForceSave bool
Résultat bool

UIIsAutoUnlockBlocked() public méthode

public UIIsAutoUnlockBlocked ( ) : bool
Résultat bool

UIIsInteractionBlocked() public méthode

public UIIsInteractionBlocked ( ) : bool
Résultat bool

UIIsWindowStateAutoBlocked() public méthode

public UIIsWindowStateAutoBlocked ( ) : bool
Résultat bool

UpdateLinkedMenuItems() public méthode

Set the linked menu item's Enabled state to the state of their parents.
public UpdateLinkedMenuItems ( ) : void
Résultat void

UpdateTrayIcon() public méthode

Function to update the tray icon based on the current window state.
public UpdateTrayIcon ( ) : void
Résultat void

UpdateUI() public méthode

public UpdateUI ( bool bRecreateTabBar, PwDocument dsSelect, bool bUpdateGroupList, PwGroup pgSelect, bool bUpdateEntryList, PwGroup pgEntrySource, bool bSetModified ) : void
bRecreateTabBar bool
dsSelect PwDocument
bUpdateGroupList bool
pgSelect PwGroup
bUpdateEntryList bool
pgEntrySource PwGroup
bSetModified bool
Résultat void

UpdateUI() public méthode

public UpdateUI ( bool bRecreateTabBar, PwDocument dsSelect, bool bUpdateGroupList, PwGroup pgSelect, bool bUpdateEntryList, PwGroup pgEntrySource, bool bSetModified, Control cOptFocus ) : void
bRecreateTabBar bool
dsSelect PwDocument
bUpdateGroupList bool
pgSelect PwGroup
bUpdateEntryList bool
pgEntrySource PwGroup
bSetModified bool
cOptFocus Control
Résultat void

WndProc() protected méthode

protected WndProc ( Message &m ) : void
m Message
Résultat void