private void GenericShowDialog(Window window) { Hide(); window.Owner = this; window.ShowDialog(); Close(); }