mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
37 lines
992 B
C#
37 lines
992 B
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();
|
|
}
|
|
}
|
|
}
|