1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using ICSharpCode.SharpDevelop;
7
namespace ICSharpCode.WixBinding
9
public class WixFileTreeNode : WixTreeNode
11
WixFileElement fileElement;
13
public WixFileTreeNode(WixFileElement element) : base(element)
15
fileElement = element;
16
ContextmenuAddinTreePath = "/AddIns/WixBinding/PackageFilesView/ContextMenu/FileTreeNode";
20
public override void Refresh()
22
Text = fileElement.FileName;
23
SetIcon(IconService.GetImageForFile(GetFileName()));
28
string fileName = fileElement.FileName;
29
if (!String.IsNullOrEmpty(fileName)) {
32
return fileElement.Source;