public static bool Show(Window owner) { CloseWindow view = new CloseWindow(); view.Owner = owner; view.ShowDialog(); return view.DialogResult == true; }