欢迎来到SO!
在后面的代码中你可以有一个简单的标志:
bool buttonPressed = false
然后,在button_click事件中:
if(!buttonPressed)
{
buttonPressed = true
// do stuff
}
else
{
// do other stuff
// delete the button
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1220 次 |
| 最近记录: |