public static void RefreshLocalWallpapers() { Wallpapers = new List <Wallpaper>(); if (!SettingInitialized) { return; } try { if (!Directory.Exists(LocalWallpaperDir)) { Directory.CreateDirectory(LocalWallpaperDir); } var wallpapers = Wallpaper.GetWallpapers(LocalWallpaperDir); foreach (var item in wallpapers) { Wallpapers.Add(item); } } catch (Exception ex) { logger.Error(ex); } }