Loading

WPF新的窗口返回值的方式

Yyqd_Window win = new Yyqd_Window()
{
CompanyID = textBox_companyId.Text.Trim(),
CompanyName = textBox_work_unit.Text.Trim(),
ImportName = ""
};
win.Unloaded += (o, ae) =>
{
if (win.SelectedValue != null)
{
this.Sign(win.SelectedValue);
}
};
DialogHelper.ShowDialog(win);
this.Focus();

 

posted @ 2020-08-26 09:21  jevan  阅读(1215)  评论(0编辑  收藏  举报