private void SettingsApplyButton_Click(object sender, RoutedEventArgs e) { if (checkConnection(true)) { UserSettings.ConnectionString = ConnectionString.ConnectionString; UserSettings.StoragePath = StoragePath; UserSettings.ProfileRole = (ERole)ProfileRole; Properties.Settings.Default.Save(); if (_dc != null) { _dc.SubmitChanges(); } ; closeWindow(); ParameterRepository.Reload(); this.DialogResult = true; } ; }