There is function in which a new window is opened and shown. I want to put a condition onto the closure of that window. I wrote what I want as a pseudo-code below.
private void fnc (object sender, RoutedEventArgs e)
{
MyWindow nw = new MyWindow();
nw.Show();
// Pseudo code: When (nw.Close()) {do something}
}
1 Answer