~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/BackendBindings/WixBinding/Project/Src/Gui/WixComponentTreeNode.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
3
 
 
4
using System;
 
5
using System.Xml;
 
6
 
 
7
namespace ICSharpCode.WixBinding
 
8
{
 
9
        public class WixComponentTreeNode : WixTreeNode
 
10
        {               
 
11
                public WixComponentTreeNode(WixComponentElement element) : base(element)
 
12
                {
 
13
                        SetIcon("Setup.Icons.16x16.Component");
 
14
                        ContextmenuAddinTreePath = "/AddIns/WixBinding/PackageFilesView/ContextMenu/ComponentTreeNode";
 
15
                        Refresh();
 
16
                }
 
17
                
 
18
                public override void Refresh()
 
19
                {
 
20
                        base.Refresh();
 
21
                        Text = XmlElement.GetAttribute("Id");
 
22
                }
 
23
        }
 
24
}