private void SelectCacheFolderButtonClick(object sender, RoutedEventArgs e)
{
var dialog = new FolderBrowserDialog
{
Description = "Select folder to save the cached thumbnails:",
SelectedPath = Preferences.CacheLocation
};
DialogResult result = dialog.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK)
{
Preferences.CacheLocation = dialog.SelectedPath;
}
}