AcManager.Pages.Dialogs.UpgradeIconEditor_Library.UpdateIcons C# (CSharp) Метод

UpdateIcons() приватный Метод

private UpdateIcons ( ) : void
Результат void
        private void UpdateIcons() {
            Icons = new ObservableCollection<FilesStorage.ContentEntry>(FilesStorage.Instance.GetContentDirectory(ContentCategory.UpgradeIcons));

            if (Icons.Contains(Selected)) return;
            var previous = ValuesStorage.GetString(_key);
            Selected = (previous != null ? Icons.FirstOrDefault(x => x.Name == previous) : null) ?? (Icons.Count > 0 ? Icons[0] : null);
        }