private void ShowResourcesDir_OnClick(object sender, RoutedEventArgs e) { if (PathAndFileHelper.IsPathValid(DataObject.ResourcesDir)) { System.Diagnostics.Process.Start(DataObject.ResourcesDir); } }
private void LoadPreview() { if (PathAndFileHelper.IsPathValid(DataObject.ResourcesDir)) { // Preview. UIHelper.LoadPreviewImage(DataObject.ResourcesDir, DataObject.ThumbnailName, _previewImage, _previewName); // Images. _imagesListView.ItemsSource = ImagePreview.LoadImages(DataObject.ResourcesDir); // Files. DirectoriesTreeView.ItemsSource = ItemProvider.GetItems(DataObject.ResourcesDir); } }