Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tiuub authored Jan 18, 2020
1 parent 421fac5 commit 28a4502
Show file tree
Hide file tree
Showing 20 changed files with 1,499 additions and 0 deletions.
25 changes: 25 additions & 0 deletions PasswordChangeReminder.sln
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
48 changes: 48 additions & 0 deletions PasswordChangeReminder/PCRConfig.cs
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); ;
}
}
}
}
120 changes: 120 additions & 0 deletions PasswordChangeReminder/PCRPasswordsForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 28a4502

Please sign in to comment.