-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDemoPluginExt.cs
52 lines (41 loc) · 962 Bytes
/
DemoPluginExt.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using DemoPlugin.Properties;
using KeePass.Plugins;
using KeePass.Util;
using System.Drawing;
using System.Windows.Forms;
namespace DemoPlugin
{
public sealed class DemoPluginExt : Plugin
{
private IPluginHost _host;
public override Image SmallIcon
{
get { return Resources.MenuIcon; }
}
public override string UpdateUrl
{
get { return "<updateUrl>"; }
}
public override bool Initialize(IPluginHost host)
{
if (host == null) return false;
_host = host;
//Set the version information file signature
UpdateCheckEx.SetFileSigKey(UpdateUrl, Resources.DemoPluginExt_UpdateCheckFileSigKey);
return true;
}
public override void Terminate()
{
}
public override ToolStripMenuItem GetMenuItem(PluginMenuType t)
{
if (t != PluginMenuType.Main)
return null;
ToolStripMenuItem strip = new ToolStripMenuItem
{
Text = Resources.DemoPluginExt_GetMenuItem_DemoPlugin
};
return strip;
}
}
}