Skip to content

Commit

Permalink
Added a way to set up patterns for entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
zedseven committed Dec 15, 2019
1 parent 1c574d0 commit cac9a1f
Show file tree
Hide file tree
Showing 14 changed files with 1,190 additions and 62 deletions.
6 changes: 6 additions & 0 deletions PatternPass.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documentation", "Documentat
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PatternPassTests", "PatternPassTests\PatternPassTests.csproj", "{DBBEF1E4-B248-4510-B5C0-1A453A1CCFFA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -27,6 +29,10 @@ Global
{2EE7D6AF-DED4-44A1-9CC4-A855329B56CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2EE7D6AF-DED4-44A1-9CC4-A855329B56CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2EE7D6AF-DED4-44A1-9CC4-A855329B56CB}.Release|Any CPU.Build.0 = Release|Any CPU
{DBBEF1E4-B248-4510-B5C0-1A453A1CCFFA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DBBEF1E4-B248-4510-B5C0-1A453A1CCFFA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DBBEF1E4-B248-4510-B5C0-1A453A1CCFFA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DBBEF1E4-B248-4510-B5C0-1A453A1CCFFA}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
32 changes: 32 additions & 0 deletions PatternPass/Interface.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using KeePass.Plugins;

namespace PatternPass
{
/// <summary>
/// Wraps some of the KeePass interface functions so they are more easily accessible and branded with the plugin info.
/// </summary>
public static class Interface
{
private static IPluginHost _host;

private static bool Initialized { get; set; }

public static void Init(IPluginHost host)
{
if (Initialized) return;

_host = host;

Initialized = true;
}

/// <summary>
/// Updates the UI status along the bottom of the window in KeePass with <paramref name="message" />.
/// </summary>
/// <param name="message">The message to update the status with.</param>
public static void UpdateStatus(string message)
{
_host.MainWindow.SetStatusEx("PatternPass: " + message);
}
}
}
Loading

0 comments on commit cac9a1f

Please sign in to comment.