Beispiel #1
0
        private void DisplaySavedPageSettings()
        {
            EnumSet.SortingType sortingType = _profileService.GetValueToSort();
            switch (sortingType)
            {
            case EnumSet.SortingType.SortByName:
                IsCheckedName = true;
                break;

            case EnumSet.SortingType.SortByNickName:
                IsCheckedNickName = true;
                break;

            case EnumSet.SortingType.SortByDateAddedToDatabase:
                IsCheckedDataAddedToTheDB = true;
                break;
            }

            EnumSet.Theme themeType = _themService.GetValueTheme();
            switch (themeType)
            {
            case EnumSet.Theme.Light:
                IsCheckedTheme = false;
                break;

            case EnumSet.Theme.Dark:
                IsCheckedTheme = true;
                break;
            }
            CurrentLanguage = _localizationService.GetValueLanguage();
        }
Beispiel #2
0
 public void SetValueToSort(EnumSet.SortingType sortingType)
 {
     _settingsManager.SortingType = (int)sortingType;
 }