17,740
社区成员
发帖
与我相关
我的任务
分享
delegate void MyDel();
void show() { pictureBox1.Visible = true; }
void hide() { pictureBox1.Visible = false; }
private void Button1_Click(object sender, EventArgs e) //显示
{
MyDel d = show;
d();
}
private void Button2_Click(object sender, EventArgs e) //隐藏
{
MyDel d = hide;
d();
}