Пример #1
0
        protected override void OnGroupByProjectUpdate()
        {
            if (_initializing)
            {
                return;
            }

            _storedSettingsRepository.SetGroupByProject(GroupByProject);
        }
Пример #2
0
 /// <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);
 }