public SettingsViewViewModel(
IConfigurationService<SourceControlConfiguration> configService,
IFolderBrowserFactory folderBrowserFactory)
{
_configService = configService;
_folderBrowserFactory = folderBrowserFactory;
_config = _configService.LoadConfiguration();
UserName = _config.UserName;
EmailAddress = _config.EmailAddress;
DefaultRepositoryLocation = _config.DefaultRepositoryLocation;
_showFilePickerCommand = new DelegateCommand(_ => ShowFilePicker());
_cancelSettingsChangesCommand = new DelegateCommand(_ => CancelSettingsChanges());
_updateSettingsCommand = new DelegateCommand(_ => UpdateSettings());
_showGitIgnoreCommand = new DelegateCommand(_ => ShowGitIgnore(), _ => Provider != null);
_showGitAttributesCommand = new DelegateCommand(_ => ShowGitAttributes(), _ => Provider != null);
}