protected override void OnShowConfigurationBarUpdate() { ConfigurationBarVisibility = ShowConfigurationBar ? Visibility.Visible : Visibility.Collapsed; if (_initializing) { return; } _storedSettingsRepository.SetShowConfigurationBar(ShowConfigurationBar); }
/// <summary> /// Store all property values in <paramref name="model"/> /// </summary> /// <param name="model"> /// User preference model containing values with which to overwrite /// stored values with /// </param> public void SaveModel(IUserPreferencesModel model) { _storedSettingsRepository.SetAssignProjectColours(model.AssignProjectColours); _storedSettingsRepository.SetGroupByProject(model.GroupByProject); _storedSettingsRepository.SetHighlightFileName(model.HighlightFileName); _storedSettingsRepository.SetShowFileTypeIcons(model.ShowFileTypeIcons); _storedSettingsRepository.SetShowRecentUsage(model.ShowRecentUsage); _storedSettingsRepository.SetPathSegmentCount(model.PathSegmentCount); _storedSettingsRepository.SetUnityRefreshDelay(model.UnityRefreshDelay); _storedSettingsRepository.SetDocumentSortOptionName(model.DocumentSortOptionName); _storedSettingsRepository.SetProjectSortOptionName(model.ProjectSortOptionName); _storedSettingsRepository.SetShowConfigurationBar(model.ShowConfigurationBar); _storedSettingsRepository.SetShowSearchBar(model.ShowSearchBar); }