private bool changeSettings() { bool result = false; SettingsView settingsWindow = new SettingsView(this.settings); settingsWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen; if (settingsWindow.ShowDialog() == true) { result = true; } return(result); }
private void DataBaseLink_Click(object sender, RoutedEventArgs e) { Settings settings = this.settings.Clone(); SettingsView settingsWindow = new SettingsView(settings); settingsWindow.Owner = this; settingsWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner; if (settingsWindow.ShowDialog() == true) { this.settings = settings; if (this.dbWorker != null) { this.dbWorker.MainDbConnectionString = Settings.GlobalMainDbConnectionString; this.dbWorker.KaskadDbConnectionString = Settings.GlobalKaskadDbConnectionString; } } }