class form1
{
void fun()
{
form2 f2=new form2();
f2.SetForm1=fun2;
}
void fun2()
{
//form1刷新
//MessageBox.Show("form1刷新了");
}
}
class form2
{
delegate void SetForm();
public SetForm SetForm1;
void btn_click(object sender,EventArgs e)
{
if(SetForm1!=null)
{
SetForm1();
}
}
}