C#之TreeView、TreeNode、switch使用实例代码
private void treeViewLeft_AfterSelect(object sender, TreeViewEventArgs e){
String strNodeText = e.Node.Text;
switch (strNodeText)
{
case "aa":
this.label1.Text = "fffff";
break;
case "bb":
MDIParent1 md = new MDIParent1();
md.Show();
break;
case "":
break;
}
}
补充:软件开发 , C# ,