private void SaveOAuthSettingsClicked(object sender, RoutedEventArgs e)
{
// Store the OAuth information that was entered
AppClientId = ClientIdTextBox.Text.Trim();
OAuthRedirectUrl = RedirectUrlTextBox.Text.Trim();
// Hide the OAuth settings, show the save map controls
OAuthSettingsGrid.Visibility = Visibility.Collapsed;
SaveMapGrid.Visibility = Visibility.Visible;
// Update authentication manager with the OAuth settings
UpdateAuthenticationManager();
}