private void ChangeSettings(Settings settings, bool isPathChanged, bool isResolutionChanged)
{
this.settingsRepository.UpdateCurrentSettings(settings);
if (isResolutionChanged)
{
ImageQuestionData.CurrentResolution = this.SelectedResolution;
}
GpsTracker.Instance.GpsAllowed = settings.IsGpsEnabled;
this.Refresh();
if (isPathChanged)
{
Membership.ResetCurrentUser();
string navigationSource = string.Format(LOGIN_SOURCE, this.serverPath);
NavigationProvider.Navigate(new System.Uri(navigationSource, System.UriKind.Relative));
Locator.Cleanup();
}
}