Cosmos/source2/Users/Orvid/PlugViewer/TreeViewNodes/NamespaceTreeNode.cs
2011-08-16 02:46:07 +00:00

36 lines
983 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Mono.Cecil;
namespace PlugViewer.TreeViewNodes
{
internal class NamespaceTreeNode : OTreeNode
{
public NamespaceTreeNode(string name)
{
this.SelectedImageIndex = Constants.NamespaceIcon;
this.ImageIndex = Constants.NamespaceIcon;
this.Text = name;
Log.WriteLine("Namespace '" + this.Text + "' was discovered.");
}
public override TreeNodeType Type
{
get { return TreeNodeType.Namespace; }
}
public override object Definition
{
get { return null; }
}
public override void ShowNodeInfo(RichTextBox rtb)
{
StringBuilder sb = new StringBuilder();
sb.AppendLine("Namespace '" + this.Text + "'");
rtb.Text = sb.ToString();
}
}
}