private void FFX2_Click(object sender, RoutedEventArgs e) { _configFlyout.IsOpen = false; var processSelect = new ProcessSelectWindow("FFX-2") { Owner = this }; processSelect.ShowDialog(); if (processSelect.DialogResult == true) { Hide(); var FFX2Editor = new FFX2Editor(); FFX2Editor.ShowDialog(); GameMemory.Detach(); if (Settings.Default.CloseWithGame) { Environment.Exit(0); } Show(); Topmost = true; Topmost = false; } }