项目介绍:XX
功能点介绍:自定义一个树控件,实现网元树,基站树功能。
实现方法:
首先,定义一个 右键菜单 private ContextMenuStrip TreeItemContextMenu = new ContextMenuStrip();
在构造函数里面初始化该控件:
#region
增加右键菜单
private void CreateContextMenuScript()
{
System.Windows.Forms.ToolStripMenuItem BtsInfo;
System.Windows.Forms.ToolStripMenuItem FindBts;
System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
System.Windows.Forms.ToolStripMenuItem DegreeAsc;
BtsInfo = new System.Windows.Forms.ToolStripMenuItem();
FindBts = new System.Windows.Forms.ToolStripMenuItem();
toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
private void CreateContextMenuScript()
{
System.Windows.Forms.ToolStripMenuItem BtsInfo;
System.Windows.Forms.ToolStripMenuItem FindBts;
System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
System.Windows.Forms.ToolStripMenuItem DegreeAsc;
BtsInfo = new System.Windows.Forms.ToolStripMenuItem();
FindBts = new System.Windows.Forms.ToolStripMenuItem();
toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();