-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathP4EXPOverlayIconExtension3.cs
More file actions
38 lines (34 loc) · 1.08 KB
/
P4EXPOverlayIconExtension3.cs
File metadata and controls
38 lines (34 loc) · 1.08 KB
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
using System;
using System.IO;
using System.Text;
using System.Security.Cryptography;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Collections.Generic;
using LogicNP.EZShellExtensions;
using Perforce.P4;
namespace P4EXP
{
[Guid("A687EFDD-5C65-442C-B3E2-9841BB7C63E0"), ComVisible(true)]
public class P4EXPOverlayIconExtension3 : OverlayHandler
{
public P4EXPOverlayIconExtension3()
{
m_icon = P4EXPProgram.AssemblyDirectory + @"\stale_rev.ico";
}
protected override bool CheckAction(FileMetaData fmd)
{
return fmd != null && fmd.HaveRev != fmd.HeadRev && fmd.Action == FileAction.None;
}
[ComRegisterFunction]
public static void Register(System.Type t)
{
OverlayIconExtension.RegisterExtension(typeof(P4EXPOverlayIconExtension3));
}
[ComUnregisterFunction]
public static void UnRegister(System.Type t)
{
OverlayIconExtension.UnRegisterExtension(typeof(P4EXPOverlayIconExtension3));
}
}
}