110,547
社区成员
发帖
与我相关
我的任务
分享
static int count =0;
bool b = false;
private void Timer1_Tick(object sender,EventArgs e)
{
count++;
if(count == 10 && !b)
Appliction.Exit();
switch(MethodA())
{
case 1:
Application.Exit();
break;
case 2:
return;
case 3:
MethodB();
b = true;
break;
}
}