public static void RestorePlaylistFileDirectories(PlaylistFileControl playlistFileControl) { foreach (string dir in Properties.Settings.Default.PlaylistDirectories) { playlistFileControl.ViewModel.AddDirectory(dir); } }
public static void StorePlaylistFileDirectories(PlaylistFileControl playlistFileControl) { Properties.Settings.Default.PlaylistDirectories.Clear(); foreach (FileDirectory dir in playlistFileControl.ViewModel.fileLoader.Directories) { Properties.Settings.Default.PlaylistDirectories.Add(dir.directory); } }