Cosmos/Users/Orvid/PlugViewer/TreeViewNodes/NamespaceTreeNode.cs
kudzu_cp a58ad95c10
2014-07-14 15:56:02 +00:00

37 lines
1 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace PlugViewer.TreeViewNodes
{
internal class NamespaceTreeNode : OTreeNode
{
public NamespaceTreeNode(string name) : base(TreeNodeType.Namespace)
{
this.SelectedImageIndex = Constants.NamespaceIcon;
this.ImageIndex = Constants.NamespaceIcon;
this.Text = name;
#if DebugTreeNodeLoading
Log.WriteLine("Namespace '" + this.Text + "' was discovered.");
#endif
}
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();
}
}
}