switch (e.CommandName)
{
case "1":
Console.WriteLine("Case 1");
break;
case
"2":
case
"3":
Console.WriteLine("Case 2.3");
break;
default:
Console.WriteLine("Case Else");
break;
}
記得要加break....(淚)
沒有留言:
張貼留言