Ejemplo n.º 1
0
 private void ShowResourcesDir_OnClick(object sender, RoutedEventArgs e)
 {
     if (PathAndFileHelper.IsPathValid(DataObject.ResourcesDir))
     {
         System.Diagnostics.Process.Start(DataObject.ResourcesDir);
     }
 }
Ejemplo n.º 2
0
        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);
            }
        }