110,566
社区成员
发帖
与我相关
我的任务
分享
private Action<object> callback = (args)=>
{
//dosomething;
};
private void Button_Click(object sender, RoutedEventArgs e)
{
LoginWindow login = new LoginWindow(callback);
login.Owner = this;
login.Show();
}
public partial class WindowB : Window
{
public WindowB (string userName)
{
InitializeComponent();
this.userName = userName;
}
private string userName;
}
private void Button_Click(object sender, RoutedEventArgs e)
{
var win = new WindowB();
win.Owner = this;
win.Show(userName);
}