private void Menu_SettingsClick(object sender, RoutedEventArgs e) { var settingsWindow = new MaintainSettings(printSettingsFolder, printSettingsFileName) { WindowStartupLocation = WindowStartupLocation.CenterOwner }; settingsWindow.ShowDialog(); printSettingsFolder = settingsWindow.SettingsFolder; printSettingsFileName = settingsWindow.SettingsFile; LabelSettingsFolder.Content = printSettingsFolder; TextSettingsFileName.Text = printSettingsFileName; DisplaySettings(); }