using DocsVision.Platform.Extensibility;
using DocsVision.Platform.WinForms;
using System;
using System.Runtime.InteropServices;
namespace DocsVision.Test.FolderTreeExtension
{
[ComVisible(true)]
[Guid("6A0676EE-1DAF-4A59-B5EB-E0B5B4C175E1")]
[ClassInterface(ClassInterfaceType.None)]
public partial class Plugin : NavExtension, INavFolderTreeExtension
{
public Plugin()
{
}
protected override NavExtensionTypes SupportedTypes
{
get
{
return NavExtensionTypes.FolderTree;
}
}
protected override string GetExtensionName(NavExtensionTypes extensionType) (1)
{
return "Расширение дерева папок {wincl}а";
}
public NavFolderInfo[] GetTreeExtensionFolders()
{
NavFolderInfo folder = new NavFolderInfo();
folder.Flags = NavFolderTreeFlags.ShowInPersonalFolder;
folder.FolderId = new Guid("FC849072-406E-4BB2-AA25-18F33E6AB252");
folder.Location = NavFolderLocationFlags.AboveRegular;
return new NavFolderInfo[] { folder };
}
}
}