Esempio n. 1
0
 private void OpenDirectory_Click(object sender, RoutedEventArgs e)
 {
     if (e.Source is Button button && button.DataContext != null)
     {
         if (button.DataContext is Models.CollectPath collectPath)
         {
             try
             {
                 StaticFolders.OpenDirectory(collectPath.Path);
             } catch (Exception ex)
             {
                 _logger.Error(ex);
             }
         }
     }
 }
Esempio n. 2
0
 private void OpenDirectory_Click(object sender, RoutedEventArgs e)
 {
     if (e.Source is Button button && button.DataContext != null)
     {
         if (button.DataContext is ViewModels.DuplicatesResultPath dupResultPath)
         {
             try
             {
                 StaticFolders.OpenDirectory(dupResultPath.Directory, dupResultPath.FileName, dupResultPath.Extension);
             } catch (Exception ex)
             {
                 _logger.Error(ex);
             }
         }
     }
 }
Esempio n. 3
0
 public void OpenDataFolder()
 {
     StaticFolders.OpenDirectory(StaticFolders.GetUserFolder());
 }