用事件做A窗体关闭B窗体刷新
2020-12-13 05:18
标签:os io for c ar new A窗体 //用委托声明(传一个当前窗体的页面) //在页面做完事,需要关闭窗体是调用 DetermineClick(this); B窗体 //调用A窗体时 var form = new AddOperationRulesForm(_buildingSysNo); private void form_DetermineClick(AddOperationRulesForm frm) 用事件做A窗体关闭B窗体刷新,搜素材,soscw.com 用事件做A窗体关闭B窗体刷新 标签:os io for c ar new 原文地址:http://www.cnblogs.com/denglj/p/3862984.html
public delegate void Determine(AddOperationRulesForm frm);
//用event 关键字声明事件对象
public event Determine DetermineClick;
form.DetermineClick+=form_DetermineClick; //调用事件
form.Show();
{
frm.Close();
BindingDataSources();
}