标签:style blog color os ar div 代码 new
父窗体代码
private void DGUserEdit() { if(DGUser.SelectedItem!=null) { DataRow dr = (DGUser.SelectedItem as DataRowView).Row; Page.UserEdit UE = new UserEdit(UserGrade, dr["UserName"].ToString());//声明子窗体 UE.Closed += new EventHandler(UE_Closed);//注册关闭事件 UE.ShowDialog(); } } //在子窗体的关闭里写要刷新的内容,我这是重写绑定 private void UE_Closed(object sender,EventArgs e) { Band(); }
WPF 子窗体关闭,刷新父窗体,布布扣,bubuko.com
标签:style blog color os ar div 代码 new
原文地址:http://www.cnblogs.com/ZXdeveloper/p/3904153.html