-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,499 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.28307.329 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PasswordChangeReminder", "PasswordChangeReminder\PasswordChangeReminder.csproj", "{9E942367-07C7-469D-984F-CFFD14FE6840}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{9E942367-07C7-469D-984F-CFFD14FE6840}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{9E942367-07C7-469D-984F-CFFD14FE6840}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{9E942367-07C7-469D-984F-CFFD14FE6840}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{9E942367-07C7-469D-984F-CFFD14FE6840}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {D49A4896-A404-4E04-BF96-4F7FF522F6F1} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using KeePass.App.Configuration; | ||
using KeePass.Plugins; | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace PasswordChangeReminder | ||
{ | ||
public class PCRConfig | ||
{ | ||
private AceCustomConfig m_config = null; | ||
public PCRConfig(IPluginHost host) | ||
{ | ||
m_config = host.CustomConfig; | ||
} | ||
|
||
private const String XMLPATH_PLUGINNAME = "PasswordChangeReminder"; | ||
private const String XMLPATH_CHECK_ON_STARTUP = XMLPATH_PLUGINNAME + ".CheckOnStartup"; | ||
private const String XMLPATH_PCR_PASSWORDS_FORM_HEIGHT = XMLPATH_PLUGINNAME + ".PCRPasswordsFormHeight"; | ||
|
||
public bool checkOnStartup | ||
{ | ||
get | ||
{ | ||
return m_config.GetBool(XMLPATH_CHECK_ON_STARTUP, true); | ||
} | ||
set | ||
{ | ||
m_config.SetBool(XMLPATH_CHECK_ON_STARTUP, value); ; | ||
} | ||
} | ||
|
||
public int pcrPasswordsFormHeight | ||
{ | ||
get | ||
{ | ||
return (int)m_config.GetLong(XMLPATH_PCR_PASSWORDS_FORM_HEIGHT, 300); | ||
} | ||
set | ||
{ | ||
m_config.SetLong(XMLPATH_PCR_PASSWORDS_FORM_HEIGHT, value); ; | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.