public void ShowUserThemesDirectory()
 {
     if (_themePathProvider.UserThemesDirectory is not null)
     {
         OsShellUtil.SelectPathInFileExplorer(_themePathProvider.UserThemesDirectory);
     }
 }
Ejemplo n.º 2
0
 public static void ShowFileOrFolderInFileExplorer(string path)
 {
     if (File.Exists(path))
     {
         OsShellUtil.SelectPathInFileExplorer(path);
     }
     else if (Directory.Exists(path))
     {
         OsShellUtil.OpenWithFileExplorer(path);
     }
 }
Ejemplo n.º 3
0
 public static void ShowFileOrParentFolderInFileExplorer(string path)
 {
     if (File.Exists(path))
     {
         FileInfo fileInfo = new(path);
         OsShellUtil.SelectPathInFileExplorer(fileInfo.FullName);
     }
     else if (Directory.Exists(path))
     {
         FileInfo fileInfo = new(path);
         OsShellUtil.OpenWithFileExplorer(fileInfo.Directory.FullName);
     }
 }
Ejemplo n.º 4
0
        public static void ShowFileOrParentFolderInFileExplorer(string path)
        {
            var fileInfo = new FileInfo(path);

            if (fileInfo.Exists)
            {
                OsShellUtil.SelectPathInFileExplorer(fileInfo.FullName);
            }
            else if (fileInfo.Directory.Exists)
            {
                OsShellUtil.OpenWithFileExplorer(fileInfo.Directory.FullName);
            }
        }
 public void ShowAppThemesDirectory() =>
 OsShellUtil.SelectPathInFileExplorer(_themePathProvider.AppThemesDirectory);