- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFunscriptPreviewHandler.cs
More file actions
Latest commit
27 lines (24 loc) · 774 Bytes
/
Copy pathFunscriptPreviewHandler.cs
File metadata and controls
27 lines (24 loc) · 774 Bytes
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
usingSystem.Runtime.InteropServices;
usingSystem.IO;
usingSharpShell.Attributes;
usingSharpShell.SharpPreviewHandler;
namespaceFunscriptPreviewHandler
{
[ComVisible(true)]
[COMServerAssociation(AssociationType.FileExtension,".funscript")]
[PreviewHandler]
publicclassFunscriptPreviewHandler:SharpPreviewHandler
{
protectedoverridePreviewHandlerControlDoPreview()
{
// Create preview control
varcontrol=newFunscriptPreviewControl();
// Tell the control to render the file
if(!string.IsNullOrEmpty(SelectedFilePath))
{
control.HandlePreview(SelectedFilePath);
}
returncontrol;
}
}
}